Sha256: cc16459a91a73aed1a23e759b89c0dc15b13432b7611801d2f927d7babb776e1
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
module FlashHelper helpers do # clear out flash object def clear_flash! @flash = session[:flash] || BSON::OrderedHash.new @flash.clear session[:flash] = @flash end # add flash message def flash_it!( type, msg ) @flash = session[:flash] || BSON::OrderedHash.new @flash[type] = msg session[:flash] = @flash end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wackamole-0.1.4 | lib/helpers/flash_helper.rb |
wackamole-0.1.3 | lib/helpers/flash_helper.rb |