mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-25 15:22:58 +00:00
generate local file on install rather than load
This commit is contained in:
@@ -9,6 +9,9 @@ module ValidatesTimeliness
|
||||
copy_file 'validates_timeliness.rb', 'config/initializers/validates_timeliness.rb'
|
||||
end
|
||||
|
||||
def copy_locale_file
|
||||
copy_file 'en.yml', 'config/locales/validates_timeliness.en.yml'
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -42,5 +42,3 @@ require 'validates_timeliness/helper_methods'
|
||||
require 'validates_timeliness/attribute_methods'
|
||||
require 'validates_timeliness/extensions'
|
||||
require 'validates_timeliness/version'
|
||||
|
||||
I18n.load_path << File.expand_path(File.dirname(__FILE__) + '/validates_timeliness/locale/en.yml')
|
||||
|
||||
Reference in New Issue
Block a user