Sha256: f9c7f1a9edddb45fe21fd02ef36ce3441f140a649deca784ebfa66f8638a3c7f
Contents?: true
Size: 374 Bytes
Versions: 30
Compression:
Stored size: 374 Bytes
Contents
module Locomotive::Steam module Middlewares class Robots include Helpers attr_accessor_initialize :app def call(env) if env['PATH_INFO'] == '/robots.txt' site = env['steam.site'] render_response(site[:robots_txt] || '', 200, 'text/plain') else app.call(env) end end end end end
Version data entries
30 entries across 30 versions & 1 rubygems