Sha256: 3e925f462b7a0e1675e3bc0ca38f9640ad2955b37df909835776b9a686af6b81
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
module CookieTracker module ControllerAdditions def initialize_cookie_tracker(parameters={}) parameters.each do |setting,value| cookies[setting].nil? ? instance_variable_set("@#{setting}",value) : instance_variable_set("@#{setting}",cookies[setting]) instance_variable_set("@#{setting}",params[setting].squish) unless params[setting].nil? cookies[setting] = instance_variable_get("@#{setting}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cookie_tracker-1.0.0 | lib/cookie_tracker/controller_additions.rb |