Class: Dscf::Core::Role
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Dscf::Core::Role
- Defined in:
- app/models/dscf/core/role.rb
Class Method Summary collapse
- .ransackable_associations(_auth_object = nil) ⇒ Object
- .ransackable_attributes(_auth_object = nil) ⇒ Object
Class Method Details
.ransackable_associations(_auth_object = nil) ⇒ Object
19 20 21 |
# File 'app/models/dscf/core/role.rb', line 19 def self.ransackable_associations(_auth_object = nil) %w[user_roles users role_permissions permissions] end |
.ransackable_attributes(_auth_object = nil) ⇒ Object
15 16 17 |
# File 'app/models/dscf/core/role.rb', line 15 def self.ransackable_attributes(_auth_object = nil) %w[id code name description active created_at updated_at] end |