Sha256: 959ebad718c100ac978b5609c351795f754e55a73b8a0a4d7ab04811d5e53231

Contents?: true

Size: 437 Bytes

Versions: 44

Compression:

Stored size: 437 Bytes

Contents

module PhcdevworksNotifications
  module ApplicationHelper
  
    # PHCNotifi - Bootstrap Notification Helpers for Rails
    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
  
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
phcdevworks_notifications-2.2.3 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.2.2 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.2.1 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.2.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.1.2 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.1.1 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.1.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-2.0.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.5.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.4.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.3.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.2.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.1.0 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.6 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.5 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.4 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.3 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.2 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.1 app/helpers/phcdevworks_notifications/application_helper.rb
phcdevworks_notifications-1.0.0 app/helpers/phcdevworks_notifications/application_helper.rb