Commit d40756d6 authored by Eric Davis's avatar Eric Davis

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
parent 50bab8b4
......@@ -24,7 +24,7 @@ class WelcomeController < ApplicationController
end
def robots
@projects = Project.public.active
@projects = Project.all_public.active
render :layout => false, :content_type => 'text/plain'
end
end
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment