Class: SolidusPagy::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SolidusPagy::Generators::InstallGenerator
- Defined in:
- lib/generators/solidus_pagy/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_stylesheets ⇒ Object
12 13 14 15 |
# File 'lib/generators/solidus_pagy/install/install_generator.rb', line 12 def add_stylesheets inject_into_file 'vendor/assets/stylesheets/spree/frontend/all.css', " *= require spree/frontend/solidus_pagy\n", before: %r{\*/}, verbose: true inject_into_file 'vendor/assets/stylesheets/spree/backend/all.css', " *= require spree/backend/solidus_pagy\n", before: %r{\*/}, verbose: true end |
#copy_initializer ⇒ Object
8 9 10 |
# File 'lib/generators/solidus_pagy/install/install_generator.rb', line 8 def copy_initializer template 'initializer.rb', 'config/initializers/solidus_pagy.rb' end |