Sha256: 04cafcdcc13d44e4a68d028e30c1153f69959bd0a2c9d7a77a44942a2771f174
Contents?: true
Size: 385 Bytes
Versions: 1
Compression:
Stored size: 385 Bytes
Contents
module Redshop class ApplicationController < ActionController::Base protect_from_forgery with: :null_session before_action :check_session # Set uniq guest_id for cart_id and count_id. Theese ids will be use in the our application later. def check_session unless session[:guest_id] session[:guest_id] = SecureRandom.hex(6) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redshop-0.0.1 | app/controllers/redshop/application_controller.rb |