diff options
author | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-13 18:13:36 +0200 |
---|---|---|
committer | Alessandro Desantis <desa.alessandro@gmail.com> | 2020-06-13 18:13:36 +0200 |
commit | ac97de15b4afc29498e94fa05ae3eced1899eed6 (patch) | |
tree | 4570e1c77836b6b5f1fb015c46dfbcec08c8554b /lib/solidus_subscriptions/engine.rb | |
parent | 94f3b5c502ae72e8000b79f38fae1912a018ae81 (diff) |
Update decorator namespaces to be compliant with Zeitwerk
Diffstat (limited to 'lib/solidus_subscriptions/engine.rb')
-rw-r--r-- | lib/solidus_subscriptions/engine.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/solidus_subscriptions/engine.rb b/lib/solidus_subscriptions/engine.rb index 7b9f336..39cb754 100644 --- a/lib/solidus_subscriptions/engine.rb +++ b/lib/solidus_subscriptions/engine.rb @@ -33,8 +33,8 @@ module SolidusSubscriptions end initializer 'subscriptions_backend' do - next unless Spree::Backend::Config.respond_to?(:menu_items) - Spree::Backend::Config.configure do |config| + next unless ::Spree::Backend::Config.respond_to?(:menu_items) + ::Spree::Backend::Config.configure do |config| config.menu_items << config.class::MenuItem.new( [:subscriptions], 'repeat', @@ -45,7 +45,7 @@ module SolidusSubscriptions end def self.activate - Spree::Ability.register_ability(SolidusSubscriptions::Ability) + ::Spree::Ability.register_ability(SolidusSubscriptions::Ability) end config.to_prepare(&method(:activate).to_proc) |