Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Allow robots to crawl reports #86

Merged
merged 1 commit into from Apr 15, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
@@ -1,7 +1,7 @@
class ApplicationController < ActionController::Base
include Slimmer::Headers
include Slimmer::SharedTemplates
before_filter :set_slimmer_headers, :set_robots_headers
before_filter :set_slimmer_headers

# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Expand Down
14 changes: 0 additions & 14 deletions app/controllers/specialist_documents_controller.rb
Expand Up @@ -32,18 +32,4 @@ def error_not_found
render status: :not_found, text: "404 error not found"
end

def set_robots_headers
if finders_excluded_from_robots.include?(request.path.split('/')[1])
response.headers["X-Robots-Tag"] = "none"
end
end

def finders_excluded_from_robots
[
'aaib-reports',
'maib-reports',
'raib-reports',
]
end

end
30 changes: 0 additions & 30 deletions spec/controllers/specialist_documents_controller_spec.rb

This file was deleted.