Sha256: 2c12574bed1d5c768bfa6e95f048f42d0d85491307fa525789f94d800d352005
Contents?: true
Size: 645 Bytes
Versions: 2
Compression:
Stored size: 645 Bytes
Contents
module Roboto class RobotsController < Roboto::ApplicationController def show render :text => robot_contents, :layout => false, :content_type => 'text/plain' end protected def robot_contents Roboto::ContentProvider.new.contents end def robots_path Rails.root.join("config/robots/#{Rails.env}.txt") end def default_robots [ Rails.root.join("config/robots/#{Rails.env}.txt"), Rails.root.join(default_path), Roboto::Engine.root.join(default_path) ].each do |path| return path if FileTest.exists?(path) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
roboto-0.0.2 | app/controllers/roboto/robots_controller.rb |
roboto-0.0.1 | app/controllers/roboto/robots_controller.rb |