Module: IdPlease::ModelExtensions::ForRole
- Defined in:
- lib/id_please/model_extensions/for_role.rb
Instance Method Summary collapse
Instance Method Details
#_auth_assign_class ⇒ Object
13 14 15 |
# File 'lib/id_please/model_extensions/for_role.rb', line 13 def _auth_assign_class self.class._auth_assign_class_name.constantize end |
#assigned_subjects ⇒ Object
9 10 11 |
# File 'lib/id_please/model_extensions/for_role.rb', line 9 def assigned_subjects _auth_assign_class.role_id_eq(self.id).all(:include => :subject).collect(&:subject) end |
#check_subjects ⇒ Object
5 6 7 |
# File 'lib/id_please/model_extensions/for_role.rb', line 5 def check_subjects assigned_subjects end |