Class: UserRole

Inherits:
ActiveRecord::Base
  • Object
show all
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

#roleObject



16
17
18
# File 'app/models/user_role.rb', line 16

def role
  role_class_name.constantize.new
end