diff options
author | Brendan Deere <brendan@stembolt.com> | 2016-08-29 13:05:19 -0700 |
---|---|---|
committer | Brendan Deere <brendan@stembolt.com> | 2016-08-29 13:06:30 -0700 |
commit | efde9680a36d9c2cca2e42e0e48e6dffdab6c88b (patch) | |
tree | 45c491f98956b74785492d24d6bb7b6b2f21c9cb /lib/solidus_subscriptions/engine.rb | |
parent | b04146b45e357a8ba84e3f38cece831a4968a400 (diff) |
Load all overrides on activation
All files in /overrides will be spree override files. Load them all
Diffstat (limited to 'lib/solidus_subscriptions/engine.rb')
-rw-r--r-- | lib/solidus_subscriptions/engine.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/solidus_subscriptions/engine.rb b/lib/solidus_subscriptions/engine.rb index f4f92d5..091cf9e 100644 --- a/lib/solidus_subscriptions/engine.rb +++ b/lib/solidus_subscriptions/engine.rb @@ -10,7 +10,7 @@ module SolidusSubscriptions end def self.activate - Dir.glob(File.join(File.dirname(__FILE__), '../../app/**/*_decorator*.rb')) do |c| + Dir.glob(File.join(File.dirname(__FILE__), '../../app/overrides/**/*.rb')) do |c| Rails.configuration.cache_classes ? require(c) : load(c) end end |