module MetaTags::ControllerHelper
def meta_tags
def meta_tags @meta_tags ||= MetaTagsCollection.new end
def render(*args, &block)
Processes the @page_title, @page_keywords, and
def render(*args, &block) meta_tags[:title] = @page_title if defined?(@page_title) && @page_title meta_tags[:keywords] = @page_keywords if defined?(@page_keywords) && @page_keywords meta_tags[:description] = @page_description if defined?(@page_description) && @page_description super end
def set_meta_tags(meta_tags) # rubocop:disable Naming/AccessorMethodName
See MetaTags::ViewHelper#set_meta_tags for details.
Set meta tags for the page.
def set_meta_tags(meta_tags) # rubocop:disable Naming/AccessorMethodName self.meta_tags.update(meta_tags) end