Skip to content

Commit c9cfa9e

Browse files
committed
fix installation
1 parent 3dceeaa commit c9cfa9e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/generators/spree_snippets/install_generator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module SpreeSnippets
22
module Generators
33
class InstallGenerator < Rails::Generators::Base
4-
#source_root File.expand_path("../../templates", __FILE__)
4+
source_root File.expand_path("../../templates", __FILE__)
55

66
desc "Configures your Rails application for use with spree_product_assembly"
77

lib/spree_snippets.rb

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ def self.activate
1010
Dir.glob(File.join(File.dirname(__FILE__), "../app/**/*_decorator*.rb")) do |c|
1111
Rails.env.production? ? require(c) : load(c)
1212
end
13+
14+
Dir.glob(File.join(File.dirname(__FILE__), "../app/overrides/**/*.rb")) do |c|
15+
Rails.application.config.cache_classes ? require(c) : load(c)
16+
end
1317
end
1418

1519
config.to_prepare &method(:activate).to_proc

0 commit comments

Comments
 (0)