Module: Authentifyd::ApplicationHelper

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

Instance Method Summary collapse

Instance Method Details

#flash_class(level) ⇒ Object



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

def flash_class(level)
  case level
  when :notice then "alert alert-info"
  when :success then "alert alert-success"
  when :error then "alert alert-error"
  when :alert then "alert alert-error"
  end
end