Class: JqueryHelpersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- JqueryHelpersGenerator
- Defined in:
- lib/generators/jquery_helpers/jquery_helpers_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
16 17 18 |
# File 'lib/generators/jquery_helpers/jquery_helpers_generator.rb', line 16 def self.source_root @source_root ||= File.(File.join(File.dirname(__FILE__), 'templates')) end |
Instance Method Details
#install_jquery_helpers ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/generators/jquery_helpers/jquery_helpers_generator.rb', line 5 def install_jquery_helpers copy_file( 'jquery.rails.min.js', 'public/javascripts/jquery.rails.min.js' ) copy_file( 'jquery.rails.js', 'public/javascripts/jquery.rails.js' ) end |