Fix rubocop offenses

This commit is contained in:
Matt-Yorkley
2020-09-14 15:14:16 +01:00
parent c45dcad975
commit 276fea6942

View File

@@ -1,3 +1,5 @@
# frozen_string_literal: true
require 'active_support/concern'
# This concern is used to duplicate the associations distributors and distributor_ids
@@ -8,7 +10,10 @@ module PaymentMethodDistributors
def self.included(base)
base.class_eval do
has_and_belongs_to_many :distributors, join_table: 'distributors_payment_methods', class_name: 'Enterprise', foreign_key: 'payment_method_id', association_foreign_key: 'distributor_id'
has_and_belongs_to_many :distributors, join_table: 'distributors_payment_methods',
class_name: 'Enterprise',
foreign_key: 'payment_method_id',
association_foreign_key: 'distributor_id'
end
end
end