Sha256: bc7999c352376ab49e1edf0e00fb0093f1523edc91269ad1b0a7d057d1ab7ccd
Contents?: true
Size: 666 Bytes
Versions: 45
Compression:
Stored size: 666 Bytes
Contents
module <%= class_name %> class Engine < Rails::Engine require 'spree/core' isolate_namespace Spree engine_name '<%= file_name %>' # use rspec for tests config.generators do |g| g.test_framework :rspec end initializer '<%= file_name %>.environment', before: :load_config_initializers do |_app| <%= class_name %>::Config = <%= class_name %>::Configuration.new 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
45 entries across 45 versions & 2 rubygems