module Titlezilla::Helpers::Title
Public Instance Methods
application_title()
click to toggle source
# File lib/titlezilla/helpers/title.rb, line 10 def application_title translator.application_title end
meta_title()
click to toggle source
# File lib/titlezilla/helpers/title.rb, line 14 def meta_title translator.meta_title end
title(override = nil)
click to toggle source
# File lib/titlezilla/helpers/title.rb, line 6 def title(override = nil) translator.title(override) end
title_tag()
click to toggle source
# File lib/titlezilla/helpers/title.rb, line 18 def title_tag content_tag :title, meta_title end
Private Instance Methods
translator()
click to toggle source
# File lib/titlezilla/helpers/title.rb, line 24 def translator @translator ||= Translator.new(controller_path, action_name, controller.view_assigns.symbolize_keys) end