class Locomotive::Steam::Middlewares::Robots
Public Instance Methods
_call()
click to toggle source
# File lib/locomotive/steam/middlewares/robots.rb, line 8 def _call if env['PATH_INFO'] == '/robots.txt' site = env['steam.site'] render_response(site[:robots_txt] || '', 200, 'text/plain') else self.next end end