Class: CoPlan::User
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- CoPlan::User
- Defined in:
- app/models/coplan/user.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
16 17 18 |
# File 'app/models/coplan/user.rb', line 16 def self.ransackable_associations(auth_object = nil) %w[api_tokens plan_collaborators] end |
.ransackable_attributes(auth_object = nil) ⇒ Object
12 13 14 |
# File 'app/models/coplan/user.rb', line 12 def self.ransackable_attributes(auth_object = nil) %w[id external_id name email admin created_at updated_at] end |