Sha256: ec1caf04dbd48fb9d24ffef8935ad3c4e17402e36a87998361d53cc96a7c738a

Contents?: true

Size: 211 Bytes

Versions: 3

Compression:

Stored size: 211 Bytes

Contents

module CacheableFlash
  module TestHelpers
    def flash_cookie
      return {} unless cookies['flash']
      ActiveSupport::JSON.decode(cookies['flash'])
    rescue JSON::ParserError
      {}
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cacheable_flash-0.2.2 spec/support/test_helpers.rb
cacheable_flash-0.2.1 spec/support/test_helpers.rb
cacheable_flash-0.2.0 spec/support/test_helpers.rb