Module: MetaRailsHelpers::MetaDescriptionHelper
- Defined in:
- lib/meta/rails/helpers/meta_description_helper.rb
Instance Method Summary collapse
-
#meta_description(identifier: :meta_description) ⇒ Object
Produces html meta element for description.
Instance Method Details
#meta_description(identifier: :meta_description) ⇒ Object
Produces html meta element for description
4 5 6 7 8 9 |
# File 'lib/meta/rails/helpers/meta_description_helper.rb', line 4 def (identifier: :meta_description) = content_for(identifier) return if .blank? tag(:meta, name: 'description', content: ) end |