Fixed a tiny bug preventing the robots controller rending.

This commit is contained in:
Mario Visic 2011-12-27 21:31:36 +08:00
parent e9ef4d48c3
commit a65a871e19

View File

@ -10,7 +10,7 @@ module Locomotive
respond_to :txt
def show
template = Liquid::Template.parse(current_site.robots_txt)
template = ::Liquid::Template.parse(current_site.robots_txt)
render :text => template.render('request_host' => self.request.host.downcase)
end