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