diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:23:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-08-13 14:23:33 +0000 |
commit | 8fb1a7e3ccc7b501704a7873b328c1b976554cab (patch) | |
tree | fd69eb36ab8ecc9f31b32ec68ce77fe054b6a2dd /app/models/version.rb | |
parent | 91c875437d5dcca7355c9ed405a4464734cc6d17 (diff) | |
download | redmine-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/version.rb')
-rw-r--r-- | app/models/version.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/app/models/version.rb b/app/models/version.rb index 49b91b87f..cd32da91e 100644 --- a/app/models/version.rb +++ b/app/models/version.rb @@ -35,7 +35,6 @@ class Version < ActiveRecord::Base validates_inclusion_of :sharing, :in => VERSION_SHARINGS scope :named, lambda {|arg| { :conditions => ["LOWER(#{table_name}.name) = LOWER(?)", arg.to_s.strip]}} - class << self; undef :open; end scope :open, :conditions => {:status => 'open'} scope :visible, lambda {|*args| { :include => :project, :conditions => Project.allowed_to_condition(args.first || User.current, :view_issues) } } |