summaryrefslogtreecommitdiffstats
path: root/app/models/project.rb
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2009-10-21 03:21:31 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2009-10-21 03:21:31 +0000
commitd40756d61122ac31c16c41f1bb5ab4d0a9e507c6 (patch)
treef6073358752ecb2995073e290dbc63d78f495969 /app/models/project.rb
parent50bab8b429346fea13a08f8444c02e85de6003bf (diff)
downloadredmine-d40756d61122ac31c16c41f1bb5ab4d0a9e507c6.tar.gz
redmine-d40756d61122ac31c16c41f1bb5ab4d0a9e507c6.zip
Renamed Project#public named_scope so it will not override Ruby's public method
#4056 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2941 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 33ed3b7fa..f9030bdf2 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -75,7 +75,7 @@ class Project < ActiveRecord::Base
named_scope :has_module, lambda { |mod| { :conditions => ["#{Project.table_name}.id IN (SELECT em.project_id FROM #{EnabledModule.table_name} em WHERE em.name=?)", mod.to_s] } }
named_scope :active, { :conditions => "#{Project.table_name}.status = #{STATUS_ACTIVE}"}
- named_scope :public, { :conditions => { :is_public => true } }
+ named_scope :all_public, { :conditions => { :is_public => true } }
named_scope :visible, lambda { { :conditions => Project.visible_by(User.current) } }
def identifier=(identifier)