##// END OF EJS Templates
Renamed Project#public named_scope so it will not override Ruby's public method...
Eric Davis -
r2827:d40756d61122
parent child
Show More
@@ -24,7 +24,7 class WelcomeController < ApplicationController
24 24 end
25 25
26 26 def robots
27 @projects = Project.public.active
27 @projects = Project.all_public.active
28 28 render :layout => false, :content_type => 'text/plain'
29 29 end
30 30 end
@@ -75,7 +75,7 class Project < ActiveRecord::Base
75 75
76 76 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] } }
77 77 named_scope :active, { :conditions => "#{Project.table_name}.status = #{STATUS_ACTIVE}"}
78 named_scope :public, { :conditions => { :is_public => true } }
78 named_scope :all_public, { :conditions => { :is_public => true } }
79 79 named_scope :visible, lambda { { :conditions => Project.visible_by(User.current) } }
80 80
81 81 def identifier=(identifier)
General Comments 0
You need to be logged in to leave comments. Login now