Class: ValidatesTimeliness::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/validates_timeliness/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_initializersObject



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_fileObject



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