Sha256: 280d2860af4a0bd20c9b272dc0f97155454b11bd0af32ee121a8c81a462e782d
Contents?: true
Size: 333 Bytes
Versions: 1
Compression:
Stored size: 333 Bytes
Contents
class RobotsController < ActionController::Base layout false def index if ENV['DISALLOW_SEARCH'].present? && ENV['DISALLOW_SEARCH'].downcase == 'true' #test server render 'disallow.txt', content_type: "text/plain" else #live server render 'allow.txt', content_type: "text/plain" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wired-0.3.0 | templates/robots/robots_controller.rb |