diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 143641a..770a4f1 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -90,8 +90,7 @@ class ApplicationController < LinguaFrancaApplicationController end def robots - robot = is_production? && !is_test_server? ? 'live' : 'dev' - render :text => File.read("config/robots-#{robot}.txt"), :content_type => 'text/plain' + render :text => File.read("config/robots-#{Rails.env.production? ? 'live' : 'dev'}.txt"), :content_type => 'text/plain' end def humans