module SeoNoindex::ViewHelper

Public Instance Methods

meta_tag_noindex() click to toggle source
# File lib/seo_noindex/helper.rb, line 10
def meta_tag_noindex
  '<meta name="robots" content="noindex">'.html_safe
end
robots_noindex_tag() click to toggle source
# File lib/seo_noindex/helper.rb, line 4
def robots_noindex_tag
  if request && request.env && request.env['seo_noindex']
    meta_tag_noindex
  end
end