Sha256: 4ae12771f2fbc345f3e8beae09964f517eaac488c3b11c93b3ce31fd713e0877

Contents?: true

Size: 380 Bytes

Versions: 5

Compression:

Stored size: 380 Bytes

Contents

# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
  FLASH_NOTICE_KEYS = [:info, :success, :warning, :error]
  
  def config
    Hubbub::Config
  end
  
  def title page_title
    @title = page_title
    head = page_title.blank? ? "" : "#{page_title} - "
    content_for(:title) { "#{head}#{config[:title]}" }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hubbub-0.0.11 lib/app/helpers/application_helper.rb
hubbub-0.0.10 lib/app/helpers/application_helper.rb
hubbub-0.0.9 lib/app/helpers/application_helper.rb
hubbub-0.0.8 lib/app/helpers/application_helper.rb
hubbub-0.0.6 lib/app/helpers/application_helper.rb