mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fix rubocop warning
This commit is contained in:
committed by
Maikel Linke
parent
87cc525d27
commit
bb9d835bd8
@@ -7,7 +7,10 @@ class Voucher < ApplicationRecord
|
||||
|
||||
belongs_to :enterprise
|
||||
|
||||
has_many :adjustments, as: :originator, class_name: 'Spree::Adjustment', inverse_of: :voucher,
|
||||
has_many :adjustments,
|
||||
as: :originator,
|
||||
class_name: 'Spree::Adjustment',
|
||||
inverse_of: :voucher,
|
||||
dependent: :nullify
|
||||
|
||||
validates :code, presence: true, uniqueness: { scope: :enterprise_id }
|
||||
|
||||
Reference in New Issue
Block a user