Class: NestedForm::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- NestedForm::Generators::InstallGenerator
- Defined in:
- lib/generators/nested_form/install_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/nested_form/install_generator.rb', line 4 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#copy_jquery_file ⇒ Object
9 10 11 |
# File 'lib/generators/nested_form/install_generator.rb', line 9 def copy_jquery_file copy_file 'nested_form.js', 'public/javascripts/nested_form.js' end |