Sha256: b6c8503f83e312fc835ba3ccaa29aa7796c68e6376e1a16eb3d3fe22c31955f9

Contents?: true

Size: 587 Bytes

Versions: 27

Compression:

Stored size: 587 Bytes

Contents

module SpreeCore
  module Generators
    class UpgradeGenerator < Rails::Generators::Base
      source_root File.expand_path("../../templates", __FILE__)

      desc "Upgrade an existing Rails application to use with a new version of Spree."

      def copy_migrations
        directory "db"
        create_file ".rspec", "--colour"
      end

      def copy_public
        directory "public"
      end

      def config_middleware
        application 'config.middleware.use "SeoAssist"'
        application 'config.middleware.use "RedirectLegacyProductUrl"'
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 6 rubygems

Version Path
apispree_core-0.0.0 lib/generators/spree_core/upgrade_generator.rb
My-Commerce_core-1.1.0 lib/generators/spree_core/upgrade_generator.rb
My-Commerce_core-1.0.0 lib/generators/spree_core/upgrade_generator.rb
MyCommerceapi-1.0.0 core/lib/generators/spree_core/upgrade_generator.rb
MyCommerce-0.0.3 core/lib/generators/spree_core/upgrade_generator.rb
rfcommerce_core-0.0.3 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.6 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.5 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.30.2 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.40.4 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.50.4 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.4 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.50.3 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.3 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.2 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.1 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.0 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.60.0.RC1 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.50.2 lib/generators/spree_core/upgrade_generator.rb
spree_core-0.50.1 lib/generators/spree_core/upgrade_generator.rb