summaryrefslogtreecommitdiffstats
path: root/app/models/role.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/role.rb')
-rw-r--r--app/models/role.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/role.rb b/app/models/role.rb
index 06822fdba..6778f6f69 100644
--- a/app/models/role.rb
+++ b/app/models/role.rb
@@ -26,9 +26,9 @@ class Role < ActiveRecord::Base
['own', :label_issues_visibility_own]
]
- named_scope :sorted, {:order => 'builtin, position'}
- named_scope :givable, { :conditions => "builtin = 0", :order => 'position' }
- named_scope :builtin, lambda { |*args|
+ scope :sorted, {:order => 'builtin, position'}
+ scope :givable, { :conditions => "builtin = 0", :order => 'position' }
+ scope :builtin, lambda { |*args|
compare = 'not' if args.first == true
{ :conditions => "#{compare} builtin = 0" }
}