Class: Envrobots::RobotsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/envrobots/robots_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



2
3
4
5
6
7
8
# File 'app/controllers/envrobots/robots_controller.rb', line 2

def index
  if Rails.env.production?
    render file: 'config/robots/robots.production.txt', content_type: 'text/plain', layout: false
  else
    render file: 'config/robots/robots.other.txt', content_type: 'text/plain', layout: false
  end
end