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

Version Path
cacheable_flash-1.0.0 spec/dummy/app/controllers/comparison_controller.rb
cacheable_flash-0.3.4 spec/dummy/app/controllers/comparison_controller.rb
cacheable_flash-0.3.3 spec/dummy/app/controllers/comparison_controller.rb
cacheable_flash-0.3.2 spec/dummy/app/controllers/comparison_controller.rb
cacheable_flash-0.3.1 spec/dummy/app/controllers/comparison_controller.rb