Class: Voltron::Crop::Generators::Install::AssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Voltron::Crop::Generators::Install::AssetsGenerator
- Defined in:
- lib/generators/voltron/crop/install/assets_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_javascripts_assets ⇒ Object
11 12 13 14 15 |
# File 'lib/generators/voltron/crop/install/assets_generator.rb', line 11 def copy_javascripts_assets copy_file 'app/assets/javascripts/voltron-crop.js', Rails.root.join('app', 'assets', 'javascripts', 'voltron-crop.js') copy_file 'app/assets/javascripts/cropit.js', Rails.root.join('app', 'assets', 'javascripts', 'cropit.js') copy_file 'app/assets/javascripts/simple-slider.js', Rails.root.join('app', 'assets', 'javascripts', 'simple-slider.js') end |
#copy_stylesheets_assets ⇒ Object
17 18 19 |
# File 'lib/generators/voltron/crop/install/assets_generator.rb', line 17 def copy_stylesheets_assets copy_file 'app/assets/stylesheets/voltron-crop.scss', Rails.root.join('app', 'assets', 'stylesheets', 'voltron-crop.scss') end |