Sha256: 53feae7b02aeeab78182fc5a828fa6debd95289d726d0411fbcfb8e66c5046de
Contents?: true
Size: 538 Bytes
Versions: 14
Compression:
Stored size: 538 Bytes
Contents
# Helper methods defined here can be accessed in any controller or view in the application Admin.helpers do # Translates default Padrino flash keys into default Twitter Bootstrap # alert CSS class name extension. # # @param [Symbol] flash - The flash key # @return [String] the CSS class name def bootstrap_alert_for(flash) case flash when :error return "error" when :warning return "block" when :notice return "success" when :info return "info" end end end
Version data entries
14 entries across 14 versions & 2 rubygems