blob: 6cb9d5239d4c86e9e3aaae76c23f0a5c1103a576 (
plain) (
tree)
|
|
# frozen_string_literal: true
class CustomerCarrier < ActiveRecord::Base
cattr_accessor :current_customer
belongs_to :customer
belongs_to :carrier
default_scope -> {
if current_customer
where(customer: current_customer)
else
all
end
}
end
|