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

9 lines
178 B
Ruby

class UserRoleModel < UserAttributeModel
# Get an user_role_model from key
def self.get_role_model_from_key(key)
self.first(:conditions => {:key => key})
end
end