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

Version Path
cookie_monster-0.1.5 examples/test_app/app/controllers/application_controller.rb
cookie_monster-0.1.4 examples/test_app/app/controllers/application_controller.rb
cookie_monster-0.1.3 examples/test_app/app/controllers/application_controller.rb
cookie_monster-0.1.2 examples/test_app/app/controllers/application_controller.rb
cookie_monster-0.1.1 examples/test_app/app/controllers/application_controller.rb
cookie_monster-0.0.1 examples/test_app/app/controllers/application_controller.rb
cookie_monster-0.0.0 examples/test_app/app/controllers/application_controller.rb