Sha256: 40f345943be151a546604a07c6d24f7ed5d83553d7853c4c2881b5bcc70c16d3
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
module SpreeRestriction class Engine < Rails::Engine require 'spree/core' isolate_namespace Spree engine_name 'spree_restriction' config.autoload_paths += %W(#{config.root}/lib) # 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 |
---|---|
spree_restriction-1.2.4 | lib/spree_restriction/engine.rb |
spree_restriction-1.2.3 | lib/spree_restriction/engine.rb |