Module: TitleHelper
- Defined in:
- lib/pineapples/templates/app/helpers/title_helper.rb
Defined Under Namespace
Classes: PageTitle
Instance Method Summary collapse
Instance Method Details
#title(additional_context = {}, opts = {}) ⇒ Object
| 3 4 5 6 7 8 9 10 | # File 'lib/pineapples/templates/app/helpers/title_helper.rb', line 3 def title(additional_context = {}, opts = {}) if content_for?(:title) provide(:title) else context = controller.view_assigns.merge(additional_context).symbolize_keys PageTitle.new(controller_path, action_name, context, opts) end end |