File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed
app/decorators/models/solidus_tracking/spree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ module SolidusTracking
44 module Spree
55 module Order
66 module TrackOrderFulfillment
7- def self . prepended ( base )
8- base . after_update :track_fulfilled_order
7+ extend ActiveSupport ::Concern
8+
9+ prepended do
10+ after_update :track_fulfilled_order
911 end
1012
1113 private
Original file line number Diff line number Diff line change @@ -4,11 +4,13 @@ module SolidusTracking
44 module Spree
55 module Order
66 module TrackOrderLifecycle
7- def self . prepended ( base )
8- base . state_machine . after_transition to : :address , do : :track_started_checkout
9- base . state_machine . after_transition to : :complete , do : :track_ordered_product
10- base . state_machine . after_transition to : :complete , do : :track_placed_order
11- base . state_machine . after_transition to : :canceled , do : :track_cancelled_order
7+ extend ActiveSupport ::Concern
8+
9+ prepended do
10+ state_machine . after_transition to : :address , do : :track_started_checkout
11+ state_machine . after_transition to : :complete , do : :track_ordered_product
12+ state_machine . after_transition to : :complete , do : :track_placed_order
13+ state_machine . after_transition to : :canceled , do : :track_cancelled_order
1214 end
1315
1416 private
Original file line number Diff line number Diff line change @@ -4,8 +4,10 @@ module SolidusTracking
44 module Spree
55 module User
66 module TrackSignup
7- def self . prepended ( base )
8- base . after_commit :track_signup , on : :create
7+ extend ActiveSupport ::Concern
8+
9+ prepended do
10+ after_commit :track_signup , on : :create
911 end
1012
1113 private
You can’t perform that action at this time.
0 commit comments