Class: ResponsiveImageTag::Generators::JqueryGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- ResponsiveImageTag::Generators::JqueryGenerator
- Defined in:
- lib/generators/responsive_image_tag/jquery_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
8 9 10 |
# File 'lib/generators/responsive_image_tag/jquery_generator.rb', line 8 def self.source_root File.("../templates", __FILE__) end |
Instance Method Details
#create_javascript_file ⇒ Object
12 13 14 15 16 |
# File 'lib/generators/responsive_image_tag/jquery_generator.rb', line 12 def create_javascript_file template 'responsive-image-tag-jquery.js', File.join( 'public', 'javascripts', 'responsive-image-tag-jquery.js') end |