Restores migration broken by r8182 and removes default scope on Role (#9800).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8213 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2011-12-14 22:24:20 +00:00
parent 7d2298f39c
commit 7c00a4a11f
3 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ class Role < ActiveRecord::Base
['own', :label_issues_visibility_own]
]
default_scope :order => 'builtin, position'
named_scope :sorted, {:order => 'builtin, position'}
named_scope :givable, { :conditions => "builtin = 0", :order => 'position' }
named_scope :builtin, lambda { |*args|
compare = 'not' if args.first == true