lib/evercookie/controller.rb
# Saves current evercookie value to session
Saves current evercookie value to session
Saves current evercookie value to session
def save
      if data = session[Evercookie.hash_name_for_get]
        if data[:key] && cookies[data[:key]]
          session[Evercookie.hash_name_for_saved] =
              { data[:key] => cookies[data[:key]] }
        end
      end
      render nothing: true
    end
def save if data = session [ Evercookie . hash_name_for_get ] if data [ :key ] && cookies [ data [ :key ] ] session [ Evercookie . hash_name_for_saved ] = { data [ :key ] => cookies [ data [ :key ] ] } end end render nothing : true end
Saves current evercookie value to session
Saves current evercookie value to session