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

9 lines
178 B
Ruby
Raw Normal View History

2011-02-01 02:47:25 +00:00
class UserRoleModel < UserAttributeModel
2011-11-18 08:43:14 +00:00
# Get an user_role_model from key
def self.get_role_model_from_key(key)
self.first(:conditions => {:key => key})
end
2011-02-01 02:47:25 +00:00
end