Merge with sub_roles
This commit is contained in:
1 parent
fc591ee308
commit
62aaf79491
308 files changed
+2844
-17841
No files matched your search
@@ -0,0 +1,11 @@
|
||||
class SubRole < Attribute
|
||||
|
||||
belongs_to :role
|
||||
has_and_belongs_to_many :users
|
||||
|
||||
# Get an sub_role from key
|
||||
def self.get_sub_role_from_key(key)
|
||||
self.first(:conditions => {:key => key})
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user