Sha256: cb52b14d5bb8c1acc1a166a1376605051d499261ccf3acda9efe4718fc58f353
Contents?: true
Size: 446 Bytes
Versions: 1
Compression:
Stored size: 446 Bytes
Contents
require 'spree_core' require 'spree_reviews_hook' module SpreeReviews class Engine < Rails::Engine config.autoload_paths += %W(#{config.root}/lib) def self.activate Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c| Rails.env.production? ? require(c) : load(c) end ProductsHelper.send(:include, ReviewsHelper) end config.to_prepare &method(:activate).to_proc end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_reviews-0.50.0 | lib/spree_reviews.rb |