Sha256: 365b6dcecc1cb390373e98253ed4e357ecd5b6679ac27317e755f8f0d1cd6fad
Contents?: true
Size: 502 Bytes
Versions: 5
Compression:
Stored size: 502 Bytes
Contents
class ComparisonController < ApplicationController include CacheableFlash def single_key_string flash[:notice] = 'message' render :text => 'Foo' end def single_key_array flash[:notice] = ['message'] render :text => 'Foo' end def single_key_hash flash[:notice] = {:hello => 'asdf'} # NOTE: Keys of hashes are always strings on the other side of JSON render :text => 'Foo' end def single_key_number flash[:notice] = 1 render :text => 'Foo' end end
Version data entries
5 entries across 5 versions & 1 rubygems