mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Fix rubucop issue in enterprise_fee model
This commit is contained in:
@@ -54,7 +54,6 @@ Layout/LineLength:
|
||||
- app/models/concerns/variant_stock.rb
|
||||
- app/models/content_configuration.rb
|
||||
- app/models/customer.rb
|
||||
- app/models/enterprise_fee.rb
|
||||
- app/models/enterprise_group.rb
|
||||
- app/models/enterprise_role.rb
|
||||
- app/models/inventory_item.rb
|
||||
|
||||
@@ -11,7 +11,9 @@ class EnterpriseFee < ActiveRecord::Base
|
||||
has_many :exchanges, through: :exchange_fees
|
||||
|
||||
FEE_TYPES = %w(packing transport admin sales fundraising).freeze
|
||||
PER_ORDER_CALCULATORS = ['Calculator::FlatRate', 'Calculator::FlexiRate', 'Calculator::PriceSack'].freeze
|
||||
PER_ORDER_CALCULATORS = ['Calculator::FlatRate',
|
||||
'Calculator::FlexiRate',
|
||||
'Calculator::PriceSack'].freeze
|
||||
|
||||
validates :fee_type, inclusion: { in: FEE_TYPES }
|
||||
validates :name, presence: true
|
||||
|
||||
Reference in New Issue
Block a user