Class: ClientSideValidations::Generators::InstallGenerator
- Inherits:
-
CopyAssetsGenerator
- Object
- Rails::Generators::Base
- CopyAssetsGenerator
- ClientSideValidations::Generators::InstallGenerator
- Defined in:
- lib/generators/client_side_validations/install_generator.rb
Instance Method Summary collapse
Methods inherited from CopyAssetsGenerator
Instance Method Details
#copy_initializer ⇒ Object
7 8 9 10 |
# File 'lib/generators/client_side_validations/install_generator.rb', line 7 def copy_initializer source_paths << File.('../../templates/client_side_validations', __FILE__) copy_file 'initializer.rb', 'config/initializers/client_side_validations.rb' end |