Module: PhcdevworksNotifications::ApplicationHelper

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

Instance Method Summary collapse

Instance Method Details

#phc_notification(flash_type) ⇒ Object

PHCNotifi - Bootstrap Notification Helpers for Rails



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'app/helpers/phcdevworks_notifications/application_helper.rb', line 5

def phc_notification(flash_type)
  case flash_type
    when 'success'
      'alert-success'
    when 'error'
      'alert-danger'
    when 'alert'
      'alert-warning'
    when 'notice'
      'alert-info'
    else
      flash_type.to_s
  end
end