Sha256: d032125b45a4936f8e130571d5eb0d9411aad4ecb16166127c8d8c396599f8a8

Contents?: true

Size: 454 Bytes

Versions: 3

Compression:

Stored size: 454 Bytes

Contents

module Authz
  # Contains helpers that are available for use in any of the internal engine views.
  # @api private
  module ApplicationHelper

    # @param name [String] keyword
    # @return [String] css class for flash
    def flash_class(name)
      case name
      when 'success'
        'is-success'
      when 'error'
        'is-danger'
      when 'notice'
        'is-primary'
      when 'alert'
        'is-warning'
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authz-0.0.5 app/helpers/authz/application_helper.rb
authz-0.0.4 app/helpers/authz/application_helper.rb
authz-0.0.3 app/helpers/authz/application_helper.rb