diff config/initializers/session_store.rb @ 431:68eb23b52864

Rails 5 \o/
author nanaya <me@myconan.net>
date Fri, 13 May 2016 03:56:07 +0900
parents 1e2e999f586a
children
line wrap: on
line diff
--- a/config/initializers/session_store.rb	Tue Mar 01 16:36:10 2016 +0900
+++ b/config/initializers/session_store.rb	Fri May 13 03:56:07 2016 +0900
@@ -1,8 +1,3 @@
 # Be sure to restart your server when you modify this file.
 
-Zeropaste::Application.config.session_store :cookie_store, :key => "_zeropaste_session"
-
-# Use the database for sessions instead of the cookie-based default,
-# which shouldn't be used to store highly confidential information
-# (create the session table with "rails generate session_migration")
-# Zeropaste::Application.config.session_store :active_record_store
+Rails.application.config.session_store :cookie_store, :key => "_zeropaste_session"