Sha256: ac91f04802fca73d9ce53d0c3737aa419d08bd6c04249fa1cb88bd093315ba83
Contents?: true
Size: 307 Bytes
Versions: 10
Compression:
Stored size: 307 Bytes
Contents
# Keep a record ot all static page paths visited for promotions that require them ContentController.class_eval do after_filter :store_visited_path def store_visited_path session[:visited_paths] ||= [] session[:visited_paths] = (session[:visited_paths] + [params[:path]]).compact.uniq end end
Version data entries
10 entries across 10 versions & 1 rubygems