Skip to content

Commit

Permalink
Remove ActiveSupport#run_load_hooks calls (#11424)
Browse files Browse the repository at this point in the history
This was accidently merged during our big Webhooks PR
  • Loading branch information
damianlegawiec committed Oct 24, 2021
1 parent 6d4df15 commit fd44b11
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 8 deletions.
2 changes: 0 additions & 2 deletions core/app/models/spree/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,3 @@ def self.json_api_type
to_s.demodulize.underscore
end
end

ActiveSupport.run_load_hooks(:spree_base, Spree::Base)
2 changes: 0 additions & 2 deletions core/app/models/spree/order.rb
Original file line number Diff line number Diff line change
Expand Up @@ -741,5 +741,3 @@ def credit_card_nil_payment?(attributes)
end
end
end

ActiveSupport.run_load_hooks(:spree_order, Spree::Order)
2 changes: 0 additions & 2 deletions core/app/models/spree/payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -305,5 +305,3 @@ def invalidate_old_payments
end
end
end

ActiveSupport.run_load_hooks(:spree_payment, Spree::Payment)
2 changes: 0 additions & 2 deletions core/app/models/spree/shipment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -401,5 +401,3 @@ def update_adjustments
end
end
end

ActiveSupport.run_load_hooks(:spree_shipment, Spree::Shipment)

0 comments on commit fd44b11

Please sign in to comment.