This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
|
class SubRole < Attribute
|
|
|
|
belongs_to :role
|
|
has_and_belongs_to_many :users
|
|
has_and_belongs_to_many :statuses, :autosave => true, :dependent => :destroy
|
|
# Get an sub_role from key
|
|
def self.get_sub_role_from_key(key)
|
|
self.first(:conditions => {:key => key})
|
|
end
|
|
|
|
end |