mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-11 01:51:32 +00:00
Use #none for empty scope.
git-svn-id: http://svn.redmine.org/redmine/trunk@16247 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2ec53dd295
commit
8615dc0bce
@ -89,7 +89,7 @@ class Issue < ActiveRecord::Base
|
||||
}
|
||||
scope :fixed_version, lambda {|versions|
|
||||
ids = [versions].flatten.compact.map {|v| v.is_a?(Version) ? v.id : v}
|
||||
ids.any? ? where(:fixed_version_id => ids) : where('1=0')
|
||||
ids.any? ? where(:fixed_version_id => ids) : none
|
||||
}
|
||||
scope :assigned_to, lambda {|arg|
|
||||
arg = Array(arg).uniq
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user