Fix rubucop issue in enterprise_fee model

This commit is contained in:
Luis Ramos
2020-06-16 18:18:34 +01:00
parent d92f97716a
commit 0b79e7c48c
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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