diff options
author | jomo <github@jomo.tv> | 2013-10-16 00:51:50 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2013-10-16 00:51:50 +0200 |
commit | b6115970dd08e5d6c28a3bc1226d9d87f3b426ad (patch) | |
tree | 25464bbedeec2bfba6fcba9d3a3e6a62a3a0655d /app/models/role.rb | |
parent | 7c578874c9b4015b286c4748532a21c631bca39c (diff) |
more forum stuff
Diffstat (limited to 'app/models/role.rb')
-rw-r--r-- | app/models/role.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/role.rb b/app/models/role.rb index a01f301..7785c41 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -35,4 +35,10 @@ class Role < ActiveRecord::Base end end + def self.all_from(role) + Role.all.select do |r| + r >= role + end + end + end
\ No newline at end of file |