Include session_store in git repo, but not the secret token.
This commit is contained in:
parent
0757be8319
commit
ca15bb1102
2 changed files with 9 additions and 1 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -8,6 +8,6 @@ capfile
|
|||
config/environments/fcschinke09.rb
|
||||
*.swp
|
||||
public/**/*_cached.*
|
||||
config/initializers/session_store.rb
|
||||
config/initializers/secret_token.rb
|
||||
.idea
|
||||
.rvmrc
|
||||
|
|
8
config/initializers/session_store.rb
Normal file
8
config/initializers/session_store.rb
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Be sure to restart your server when you modify this file.
|
||||
|
||||
Foodsoft::Application.config.session_store :cookie_store, :key => '_foodsoft_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 "rake db:sessions:create")
|
||||
# FianGroups::Application.config.session_store :active_record_store
|
Loading…
Reference in a new issue