Sha256: e695e1c9d96d8b4040672fd0b91cf466f383e4b2203c1ba7e6e2c5275b30cd79

Contents?: true

Size: 278 Bytes

Versions: 35

Compression:

Stored size: 278 Bytes

Contents

module ThecoreHelper
    def bootstrap_class_for(flash_type)
        { success: "alert-success", error: "alert-error", alert: "alert-danger", notice: "alert-info" }[flash_type.to_sym] || flash_type.to_s
    end
    
    def line_break s
        s.gsub("\n", "<br/>")
    end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
thecore_ui_commons-3.2.15 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.14 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.13 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.12 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.11 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.10 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.9 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.8 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.7 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.6 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.5 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.4 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.3 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.2 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.1 app/helpers/thecore_helper.rb
thecore_ui_commons-3.2.0 app/helpers/thecore_helper.rb
thecore_ui_commons-3.1.11 app/helpers/thecore_helper.rb
thecore_ui_commons-3.1.10 app/helpers/thecore_helper.rb
thecore_ui_commons-3.1.9 app/helpers/thecore_helper.rb
thecore_ui_commons-3.1.8 app/helpers/thecore_helper.rb