Skip to content

Commit 3234e49

Browse files
committed
Use flickwerk-style patches
This moves the patches in this gem from `lib/decorators/` to `lib/patches`, allowing Flickwerk to take over the patching.
1 parent f535321 commit 3234e49

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/decorators/backend/controllers/spree/admin/base_controller_decorator.rb renamed to lib/patches/backend/controllers/spree/admin/base_controller_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
module Spree
44
module Admin
5-
module BaseControllerDecorator
5+
module BaseControllerPatch
66
protected
77

88
def model_class

lib/decorators/backend/controllers/spree/admin/orders/customer_details_controller_decorator.rb renamed to lib/patches/backend/controllers/spree/admin/orders/customer_details_controller_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
module Spree::Admin::Orders::CustomerDetailsControllerDecorator
3+
module Spree::Admin::Orders::CustomerDetailsControllerPatch
44
def self.prepended(base)
55
base.before_action :check_authorization
66
end

lib/decorators/frontend/controllers/spree/checkout_controller_decorator.rb renamed to lib/patches/frontend/controllers/spree/checkout_controller_patch.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module Spree
4-
module CheckoutControllerDecorator
4+
module CheckoutControllerPatch
55
def self.prepended(base)
66
base.before_action :check_registration, except: [:registration, :update_registration]
77
base.before_action :check_authorization

solidus_auth_devise.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
3232
spec.add_dependency 'devise', '~> 4.1'
3333
spec.add_dependency 'devise-encryptable', '0.2.0'
3434
spec.add_dependency 'solidus_core', ['>= 3', '< 5']
35-
spec.add_dependency 'solidus_support', '~> 0.5'
35+
spec.add_dependency 'solidus_support', '~> 0.11'
3636

3737
spec.add_development_dependency 'solidus_backend'
3838
spec.add_development_dependency 'solidus_frontend'

0 commit comments

Comments
 (0)