Class: HydraBatchEdit::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- HydraBatchEdit::InstallGenerator
- Defined in:
- lib/generators/hydra_batch_edit/install_generator.rb
Overview
Installs hydra-batch-edit into the host application
Instance Method Summary collapse
Instance Method Details
#add_routes ⇒ Object
8 9 10 |
# File 'lib/generators/hydra_batch_edit/install_generator.rb', line 8 def add_routes route "Hydra::BatchEdit.add_routes(self)" end |
#inject_assets ⇒ Object
12 13 14 15 |
# File 'lib/generators/hydra_batch_edit/install_generator.rb', line 12 def inject_assets copy_file "batch_edit.scss", "app/assets/stylesheets/batch_edit.scss" copy_file "batch_edit.js", "app/assets/javascripts/batch_edit.js" end |