Sha256: 6e656af26a3ae09181c1b09a4618a8e6962c929700b723630673d3c25df88759
Contents?: true
Size: 655 Bytes
Versions: 2
Compression:
Stored size: 655 Bytes
Contents
module SpreeZaezBanner class Engine < Rails::Engine require 'spree/core' isolate_namespace Spree engine_name 'spree_zaez_banner' # use rspec for tests config.generators do |g| g.test_framework :rspec end initializer 'spree_zaez_banner.preferences', :before => :load_config_initializers do |app| Spree::BannerConfig = Spree::BannerConfiguration.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_zaez_banner-3.0.1 | lib/spree_zaez_banner/engine.rb |
spree_zaez_banner-3.0.0 | lib/spree_zaez_banner/engine.rb |