orbit-basic/app/models/user/sub_role.rb

10 lines
172 B
Ruby
Raw Normal View History

class SubRole < Attribute
has_many :users
# Get an sub_role from key
def self.get_sub_role_from_key(key)
self.first(:conditions => {:key => key})
end
end