Sha256: 50fd397f2e72299456acd2dc737fc491d2ba8b4adb7de0152f9b4e150491536d
Contents?: true
Size: 392 Bytes
Versions: 7
Compression:
Stored size: 392 Bytes
Contents
class ApplicationController < ActionController::Base include CookieMonster::Rails protect_from_forgery def index cookie_monster[:encrypted] = 'something' cookies[:something_else] = 'something else' response.set_cookie 'key', { value: 'something', path: '/' } render json: response.cookies end def reading_test render json: cookie_monster[:encrypted] end end
Version data entries
7 entries across 7 versions & 1 rubygems