Class: Dato::Utils::MetaTags::OgLocale
- Defined in:
- lib/dato/utils/meta_tags/og_locale.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#card_tag, #content_tag, #initialize, #meta_tag, #og_tag, #seo_field_with_fallback, #tag
Constructor Details
This class inherits a constructor from Dato::Utils::MetaTags::Base
Instance Method Details
#build ⇒ Object
9 10 11 12 |
# File 'lib/dato/utils/meta_tags/og_locale.rb', line 9 def build locale = I18n.locale og_tag('og:locale', "#{locale}_#{locale.upcase}") end |