Module: Title::TitleHelper

Defined in:
app/helpers/title/title_helper.rb

Defined Under Namespace

Classes: PageTitle

Instance Method Summary collapse

Instance Method Details

#title(additional_context = {}) ⇒ Object


3
4
5
6
# File 'app/helpers/title/title_helper.rb', line 3

def title(additional_context = {})
  context = controller.view_assigns.merge(additional_context).symbolize_keys
  PageTitle.new(controller_path, action_name, context).to_s
end