Class: Comee::Core::Supplier

Inherits:
ApplicationRecord show all
Defined in:
app/models/comee/core/supplier.rb

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



16
17
18
# File 'app/models/comee/core/supplier.rb', line 16

def self.ransackable_associations(_auth_object = nil)
  %w[user]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



12
13
14
# File 'app/models/comee/core/supplier.rb', line 12

def self.ransackable_attributes(_auth_object = nil)
  %w[id user_id code name address locale]
end