Sha256: 22f18ac06ebc8747d10a0b595dfafda846fe0bafd6b3cfbd1de6e004a3c07443

Contents?: true

Size: 319 Bytes

Versions: 4

Compression:

Stored size: 319 Bytes

Contents

module Mtdevise
	module ApplicationHelper

		# Bootstrap Notification System
		def flash_class(level)
			case level.to_sym
				when :notice then "alert alert-info"
				when :success then "alert alert-success"
				when :error then "alert alert-danger"
				when :alert then "alert alert-warning"
			end
		end
		
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mtdevise-2.5.5 app/helpers/mtdevise/application_helper.rb
mtdevise-2.5.2 app/helpers/mtdevise/application_helper.rb
mtdevise-2.5.0 app/helpers/mtdevise/application_helper.rb
mtdevise-2.0.5 app/helpers/mtdevise/application_helper.rb