Module: Geri::ApplicationHelper

Defined in:
app/helpers/geri/application_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_pageObject



11
12
13
# File 'app/helpers/geri/application_helper.rb', line 11

def current_page
  'index' unless params[:path]
end

#flash_alertObject



4
5
6
7
8
9
# File 'app/helpers/geri/application_helper.rb', line 4

def flash_alert
  type = flash_type
  if type
    (:div, flash[type], class: "alert alert-#{type}")
  end
end