Class: ValidatesTimeliness::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ValidatesTimeliness::Generators::InstallGenerator
- Defined in:
- lib/generators/validates_timeliness/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializers ⇒ Object
7 8 9 |
# File 'lib/generators/validates_timeliness/install_generator.rb', line 7 def copy_initializers copy_file 'validates_timeliness.rb', 'config/initializers/validates_timeliness.rb' end |
#copy_locale_file ⇒ Object
11 12 13 |
# File 'lib/generators/validates_timeliness/install_generator.rb', line 11 def copy_locale_file copy_file 'en.yml', 'config/locales/validates_timeliness.en.yml' end |