File tree 2 files changed +5
-1
lines changed
generators/spree_snippets
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
module SpreeSnippets
2
2
module Generators
3
3
class InstallGenerator < Rails ::Generators ::Base
4
- # source_root File.expand_path("../../templates", __FILE__)
4
+ source_root File . expand_path ( "../../templates" , __FILE__ )
5
5
6
6
desc "Configures your Rails application for use with spree_product_assembly"
7
7
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ def self.activate
10
10
Dir . glob ( File . join ( File . dirname ( __FILE__ ) , "../app/**/*_decorator*.rb" ) ) do |c |
11
11
Rails . env . production? ? require ( c ) : load ( c )
12
12
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
13
17
end
14
18
15
19
config . to_prepare &method ( :activate ) . to_proc
You can’t perform that action at this time.
0 commit comments