Class: ClientSideValidations::Generators::InstallGenerator

Inherits:
CopyAssetsGenerator
  • Object
show all
Defined in:
lib/generators/client_side_validations/install_generator.rb

Instance Method Summary collapse

Methods inherited from CopyAssetsGenerator

#copy_javascript_asset

Instance Method Details

#copy_initializerObject



7
8
9
10
# File 'lib/generators/client_side_validations/install_generator.rb', line 7

def copy_initializer
  source_paths << File.expand_path('../../templates/client_side_validations', __FILE__)
  copy_file 'initializer.rb', 'config/initializers/client_side_validations.rb'
end