Sha256: f141b75b748968f09ac68954f3d08d4a8af2e5f9c0aff571ee71b13e9819dede
Contents?: true
Size: 491 Bytes
Versions: 2
Compression:
Stored size: 491 Bytes
Contents
module SolidusJsonApi class Engine < Rails::Engine require 'spree/core' isolate_namespace Spree engine_name 'solidus_json_api' # use rspec for tests config.generators do |g| g.test_framework :rspec end def self.activate Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end config.to_prepare &method(:activate).to_proc end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
solidus_json_api-0.3.1 | lib/solidus_json_api/engine.rb |
solidus_json_api-0.3.0 | lib/solidus_json_api/engine.rb |