Sha256: efce66f9dc615b183a9eaabed6ff69beb3f2ea5bea4750158459ef7ff2628344

Contents?: true

Size: 221 Bytes

Versions: 1

Compression:

Stored size: 221 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

1 entries across 1 versions & 1 rubygems

Version Path
cacheable_flash-0.2.3 spec/support/test_helpers.rb