Module: MetaRailsHelpers::RobotsHelper

Defined in:
lib/meta/rails/helpers/robots_helper.rb

Instance Method Summary collapse

Instance Method Details

#robots(identifier: :robots) ⇒ Object

Produces html meta element for robots



4
5
6
7
8
9
# File 'lib/meta/rails/helpers/robots_helper.rb', line 4

def robots(identifier: :robots)
  robots = content_for(identifier)
  return if robots.blank?

  tag(:meta, name: 'robots', content: robots)
end