diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-09 23:29:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-09 23:29:58 +0000 |
commit | 532a76f78c917d4391f4a8ecce9f8201b041d57d (patch) | |
tree | 184c676eaf6f1a867ac47197f5722a272d76858b /app/models/role.rb | |
parent | b127f9157d456f233b320b349b415844eb632cb9 (diff) | |
download | redmine-532a76f78c917d4391f4a8ecce9f8201b041d57d.tar.gz redmine-532a76f78c917d4391f4a8ecce9f8201b041d57d.zip |
Resourcified roles.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8145 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/role.rb')
-rw-r--r-- | app/models/role.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/role.rb b/app/models/role.rb index 9d9d8ae94..e0c0fef1c 100644 --- a/app/models/role.rb +++ b/app/models/role.rb @@ -26,6 +26,7 @@ class Role < ActiveRecord::Base ['own', :label_issues_visibility_own] ] + default_scope :order => 'builtin, position' named_scope :givable, { :conditions => "builtin = 0", :order => 'position' } named_scope :builtin, lambda { |*args| compare = 'not' if args.first == true |