summaryrefslogtreecommitdiffstats
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-07 16:13:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-08-07 16:13:04 +0000
commit2e35a6800f71e9e8d0ccfc24a5cb6f5a2775b9f8 (patch)
tree224c48572028bd726ddcd2f076e89570863ce200 /app/models/issue.rb
parent0a5828ee4ada0e7a3df1da73715a435b8ff31c04 (diff)
downloadredmine-2e35a6800f71e9e8d0ccfc24a5cb6f5a2775b9f8.tar.gz
redmine-2e35a6800f71e9e8d0ccfc24a5cb6f5a2775b9f8.zip
Prevents "Overwriting existing method Issue.open" warning (#11545).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10159 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index e4de32b53..8ceec87a3 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -64,6 +64,7 @@ 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}