@@ -24,7 +24,7 class WelcomeController < ApplicationController | |||||
24 | end |
|
24 | end | |
25 |
|
25 | |||
26 | def robots |
|
26 | def robots | |
27 | @projects = Project.public.active |
|
27 | @projects = Project.all_public.active | |
28 | render :layout => false, :content_type => 'text/plain' |
|
28 | render :layout => false, :content_type => 'text/plain' | |
29 | end |
|
29 | end | |
30 | end |
|
30 | end |
@@ -75,7 +75,7 class Project < ActiveRecord::Base | |||||
75 |
|
75 | |||
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] } } |
|
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 | named_scope :active, { :conditions => "#{Project.table_name}.status = #{STATUS_ACTIVE}"} |
|
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 | named_scope :visible, lambda { { :conditions => Project.visible_by(User.current) } } |
|
79 | named_scope :visible, lambda { { :conditions => Project.visible_by(User.current) } } | |
80 |
|
80 | |||
81 | def identifier=(identifier) |
|
81 | def identifier=(identifier) |
General Comments 0
You need to be logged in to leave comments.
Login now