Class: SpreeCore::Generators::UpgradeGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SpreeCore::Generators::UpgradeGenerator
- Defined in:
- lib/generators/spree_core/upgrade_generator.rb
Instance Method Summary collapse
Instance Method Details
#config_middleware ⇒ Object
17 18 19 20 |
# File 'lib/generators/spree_core/upgrade_generator.rb', line 17 def config_middleware application 'config.middleware.use "SeoAssist"' application 'config.middleware.use "RedirectLegacyProductUrl"' end |
#copy_migrations ⇒ Object
8 9 10 11 |
# File 'lib/generators/spree_core/upgrade_generator.rb', line 8 def copy_migrations directory "db" create_file ".rspec", "--colour" end |
#copy_public ⇒ Object
13 14 15 |
# File 'lib/generators/spree_core/upgrade_generator.rb', line 13 def copy_public directory "public" end |