Class: Dscf::Core::Notification

Inherits:
ApplicationRecord show all
Defined in:
app/models/dscf/core/notification.rb

Class Method Summary collapse

Class Method Details

.ransackable_associations(_auth_object = nil) ⇒ Object



27
28
29
# File 'app/models/dscf/core/notification.rb', line 27

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

.ransackable_attributes(_auth_object = nil) ⇒ Object



23
24
25
# File 'app/models/dscf/core/notification.rb', line 23

def self.ransackable_attributes(_auth_object = nil)
  %w[id notification_type status title body read_at delivered_at created_at updated_at]
end