Sha256: 6cf07a0396825580b1f103104550abdceed86d2d96ba12afd871efe0ec1143d2

Contents?: true

Size: 682 Bytes

Versions: 12

Compression:

Stored size: 682 Bytes

Contents

module Spree
  module Core
    class Engine < ::Rails::Engine
      def self.add_routes(&block)
        Spree::Deprecation.warn "Spree::Core::Engine.add_routes is deprecated, use Spree::Core::Engine.routes.draw instead"
        routes.draw(&block)
      end

      def self.append_routes(&block)
        Spree::Deprecation.warn "Spree::Core::Engine.append_routes is deprecated, use Spree::Core::Engine.routes.append instead"
        routes.append(&block)
      end

      def self.draw_routes(&block)
        Spree::Deprecation.warn "Spree::Core::Engine.draw_routes is deprecated, use Spree::Core::Engine.routes.draw instead"
        routes.draw(&block)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_core-2.0.3 lib/spree/core/routes.rb
solidus_core-1.4.2 lib/spree/core/routes.rb
solidus_core-2.0.2 lib/spree/core/routes.rb
solidus_core-1.4.1 lib/spree/core/routes.rb
solidus_core-2.0.1 lib/spree/core/routes.rb
solidus_core-2.1.0.beta1 lib/spree/core/routes.rb
solidus_core-2.0.0 lib/spree/core/routes.rb
solidus_core-1.4.0 lib/spree/core/routes.rb
solidus_core-2.0.0.rc1 lib/spree/core/routes.rb
solidus_core-1.4.0.rc1 lib/spree/core/routes.rb
solidus_core-2.0.0.beta1 lib/spree/core/routes.rb
solidus_core-1.4.0.beta1 lib/spree/core/routes.rb