mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 02:17:43 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user