class Volt::Persistors::HttpCookiePersistor

Attributes

changed_cookies[R]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/volt/controllers/http_controller/http_cookie_persistor.rb, line 8
def initialize(*args)
  super

  @changed_cookies = {}
end

Public Instance Methods

changed(attribute_name) click to toggle source
# File lib/volt/controllers/http_controller/http_cookie_persistor.rb, line 14
def changed(attribute_name)
  value = @model.get(attribute_name)
  value = value.to_h if value.is_a?(Volt::Model)

  @changed_cookies[attribute_name] = value
end