mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Fix Rubocop InverseOf offense in Order
- also fix failing spec due to adding inverse
This commit is contained in:
@@ -43,7 +43,7 @@ module Spree
|
||||
has_many :state_changes, as: :stateful, dependent: :destroy
|
||||
has_many :line_items, -> {
|
||||
order('created_at ASC')
|
||||
}, class_name: "Spree::LineItem", dependent: :destroy
|
||||
}, class_name: "Spree::LineItem", inverse_of: :order, dependent: :destroy
|
||||
has_many :payments, dependent: :destroy
|
||||
has_many :return_authorizations, dependent: :destroy, inverse_of: :order
|
||||
has_many :adjustments, -> { order "#{Spree::Adjustment.table_name}.created_at ASC" },
|
||||
|
||||
Reference in New Issue
Block a user