module PhantomHelpers::ViewHelpers::FlashHelper

Public Instance Methods

flash_color(type) click to toggle source
# File lib/phantom_helpers/view_helpers/flash_helper.rb, line 5
def flash_color(type)
  case type
    when :notice then 'alert alert-info'
    when :success then 'alert alert-success'
    when :error then 'alert alert-danger'
    when :alert then 'alert alert-danger'
  end
end