Sha256: 4fc648460a5f1495469ea272c8376b7d94460a7544e5fec60d4e5b71195c9afe

Contents?: true

Size: 255 Bytes

Versions: 10

Compression:

Stored size: 255 Bytes

Contents

module BootstrapHelper
  def bootstrap_class_for(flash_type)
    {
      success: "alert-success",
      error: "alert-danger",
      alert: "alert-warning",
      notice: "alert-primary"
    }.stringify_keys[flash_type.to_s] || flash_type.to_s
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rails_app-0.9.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.8.1 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.8.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.7.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.6.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.5.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.4.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.3.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.2.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb
rails_app-0.1.0 lib/rails_app/template/app_bootstrap/helpers/bootstrap_helper.rb