diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-27 17:27:50 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-27 17:27:50 +0000 |
commit | e1f96ca4db645f0da090dfcee378217353505c62 (patch) | |
tree | 149dd8fa4a99f9e96ab5a9f20ab9050aeee047a1 /app/controllers/welcome_controller.rb | |
parent | 6c93b8d5992efe0efc2d00a2f0d846c4460d6f67 (diff) | |
download | redmine-e1f96ca4db645f0da090dfcee378217353505c62.tar.gz redmine-e1f96ca4db645f0da090dfcee378217353505c62.zip |
Replaces the obsolete robots.txt with a cached action (#2491).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2319 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/welcome_controller.rb')
-rw-r--r-- | app/controllers/welcome_controller.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index b8108e8ac..c14ec4dbe 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -16,9 +16,15 @@ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. class WelcomeController < ApplicationController + caches_action :robots def index @news = News.latest User.current @projects = Project.latest User.current end + + def robots + @projects = Project.public.active + render :layout => false, :content_type => 'text/plain' + end end |