mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
Requested changes
This commit is contained in:
@@ -474,14 +474,13 @@ RSpecRails/InferredSpecType:
|
||||
- 'spec/requests/voucher_adjustments_spec.rb'
|
||||
- 'spec/routing/stripe_spec.rb'
|
||||
|
||||
# Offense count: 3
|
||||
# Offense count: 2
|
||||
# Configuration parameters: IgnoreScopes, Include.
|
||||
# Include: app/models/**/*.rb
|
||||
Rails/InverseOf:
|
||||
Exclude:
|
||||
- 'app/models/spree/order.rb'
|
||||
- 'app/models/spree/payment.rb'
|
||||
- 'app/models/subscription_line_item.rb'
|
||||
|
||||
# Offense count: 35
|
||||
# Configuration parameters: Include.
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
class SubscriptionLineItem < ApplicationRecord
|
||||
belongs_to :subscription, inverse_of: :subscription_line_items
|
||||
belongs_to :variant, -> { with_deleted }, class_name: 'Spree::Variant'
|
||||
belongs_to :variant, -> { with_deleted }, class_name: 'Spree::Variant', inverse_of: false
|
||||
|
||||
validates :quantity, presence: true, numericality: { only_integer: true }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user