Sha256: 984dc1635bd42aee91d3318567be8c017679b031162e3b7abe9c58db9b3a0056
Contents?: true
Size: 621 Bytes
Versions: 4
Compression:
Stored size: 621 Bytes
Contents
module Spree module Api class Engine < Rails::Engine isolate_namespace Spree engine_name 'spree_api' def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../../../app/**/*_decorator*.rb")) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end Dir.glob(File.join(File.dirname(__FILE__), "../../../app/overrides/*.rb")) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end config.autoload_paths += %W(#{config.root}/lib) config.to_prepare &method(:activate).to_proc end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
spree_api-1.0.0.rc4 | lib/spree/api/engine.rb |
spree_api-1.0.0.rc3 | lib/spree/api/engine.rb |
spree_api-1.0.0.rc2 | lib/spree/api/engine.rb |
spree_api-1.0.0.rc1 | lib/spree/api/engine.rb |