summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-13 14:23:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-13 14:23:33 +0000
commit8fb1a7e3ccc7b501704a7873b328c1b976554cab (patch)
treefd69eb36ab8ecc9f31b32ec68ce77fe054b6a2dd /app/models/issue.rb
parent91c875437d5dcca7355c9ed405a4464734cc6d17 (diff)
downloadredmine-8fb1a7e3ccc7b501704a7873b328c1b976554cab.tar.gz
redmine-8fb1a7e3ccc7b501704a7873b328c1b976554cab.zip
Fixed that open scope on Project#issues raises an error (#11545).
Patch by Petr Pospisil. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10199 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 97c97e910..7807d2859 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -64,7 +64,6 @@ class Issue < ActiveRecord::Base
lambda {|*args| { :include => :project,
:conditions => Issue.visible_condition(args.shift || User.current, *args) } }
- class << self; undef :open; end
scope :open, lambda {|*args|
is_closed = args.size > 0 ? !args.first : false
{:conditions => ["#{IssueStatus.table_name}.is_closed = ?", is_closed], :include => :status}