Class: Comee::Core::Client

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

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



32
33
34
# File 'app/models/comee/core/client.rb', line 32

def self.ransackable_associations(_auth_object = nil)
  ["parent"]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'app/models/comee/core/client.rb', line 18

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