Sha256: 451fae04a46209898eb12af006d623e43bb8ee0a597c85b2aac04f307b8fb8aa

Contents?: true

Size: 464 Bytes

Versions: 3

Compression:

Stored size: 464 Bytes

Contents

# ApplicationHelper -> Helpers base
module ApplicationHelper
  # Title dinamic in all keppler
  def title(page_title)
    content_for(:title) { page_title }
  end

  # Meta Descriotion dinamic in all keppler
  def meta_description(page_description)
    content_for(:description) { page_description }
  end

  # True if a user is logged
  def loggedin?
    current_user
  end

  def landing?
    controller_name.eql?('front') && action_name.eql?('index')
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keppler-2.0.2 installer/core/app/helpers/application_helper.rb
keppler-2.0.1 installer/core/app/helpers/application_helper.rb
keppler-2.0.0 installer/core/app/helpers/application_helper.rb