Class: UserRole
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- UserRole
- Defined in:
- app/models/user_role.rb
Overview
The assignment of a Role to a User.
Constant Summary collapse
- ROLES =
[ "Roles::Clinician", "Roles::Researcher", "Roles::ContentAuthor" ].freeze
Instance Method Summary collapse
Instance Method Details
#role ⇒ Object
16 17 18 |
# File 'app/models/user_role.rb', line 16 def role role_class_name.constantize.new end |