Sha256: 99cbd941fcca8df1a4aa4872b6f898b9e29d614c6a149f1a1b87e1b7d42a6556

Contents?: true

Size: 387 Bytes

Versions: 25

Compression:

Stored size: 387 Bytes

Contents

require 'spree_core'
require 'spree_api_hooks'

module SpreeApi
  class Engine < Rails::Engine
    def self.activate

      Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
        Rails.env.production? ? require(c) : load(c)
      end

    end
    config.autoload_paths += %W(#{config.root}/lib)
    config.to_prepare &method(:activate).to_proc
  end
end

Version data entries

25 entries across 25 versions & 6 rubygems

Version Path
My-Commerce_api-1.1.0 lib/spree_api.rb
My-Commerce_api-1.0.0 lib/spree_api.rb
MyCommerceapi-1.0.0 api/lib/spree_api.rb
MyCommerce-0.0.3 api/lib/spree_api.rb
rfcommerce_api-0.0.3 lib/spree_api.rb
spree_api-0.60.6 lib/spree_api.rb
spree_api-0.60.5 lib/spree_api.rb
spree_api-0.40.4 lib/spree_api.rb
spree_api-0.50.4 lib/spree_api.rb
spree_api-0.60.4 lib/spree_api.rb
spree_api-0.50.3 lib/spree_api.rb
spree_api-0.60.3 lib/spree_api.rb
spree_api-0.60.2 lib/spree_api.rb
spree_bushido_api-0.80.28 lib/spree_api.rb
spree_bushido_api-0.80.27 lib/spree_api.rb
spree_api-0.60.1 lib/spree_api.rb
spree_api-0.60.0 lib/spree_api.rb
spree_api-0.60.0.RC1 lib/spree_api.rb
spree_api-0.50.2 lib/spree_api.rb
spree_api-0.50.1 lib/spree_api.rb