Class: Cats::Core::RoundBeneficiary

Inherits:
ApplicationRecord show all
Defined in:
app/models/cats/core/round_beneficiary.rb

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



19
20
21
# File 'app/models/cats/core/round_beneficiary.rb', line 19

def self.ransackable_associations(_auth_object = nil)
  %w[beneficiary commodity_category round_plan_item unit]
end

.ransackable_attributes(_auth_object = nil) ⇒ Object



15
16
17
# File 'app/models/cats/core/round_beneficiary.rb', line 15

def self.ransackable_attributes(_auth_object = nil)
  %w[beneficiary_id commodity_category_id quantity received round_plan_item_id unit_id]
end