Class: SpreeCore::Generators::UpgradeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/spree_core/upgrade_generator.rb

Instance Method Summary collapse

Instance Method Details

#config_middlewareObject



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_migrationsObject



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_publicObject



13
14
15
# File 'lib/generators/spree_core/upgrade_generator.rb', line 13

def copy_public
  directory "public"
end