config/initializers/devise.rb in jobshop-0.0.167 vs config/initializers/devise.rb in jobshop-0.0.179
- old
+ new
@@ -6,11 +6,11 @@
# The secret key used by Devise. Devise uses this key to generate
# random tokens. Changing this key will render invalid all existing
# confirmation, reset password and unlock tokens in the database.
# Devise will use the `secret_key_base` as its `secret_key`
# by default. You can change it below and use your own secret key.
- config.secret_key = SecureRandom.hex(64)
+ config.secret_key = Rails.application.credentials.secret_key_base
# ==> Controller configuration
# Configure the parent class to the devise controllers.
config.parent_controller = "Jobshop::ApplicationController"
@@ -249,10 +249,10 @@
#
# The "*/*" below is required to match Internet Explorer requests.
# config.navigational_formats = ['*/*', :html]
# The default HTTP method used to sign out a resource. Default is :delete.
- config.sign_out_via = :delete
+ config.sign_out_via = :get
# ==> OmniAuth
# Add a new OmniAuth provider. Check the wiki for more information on setting
# up on your models and hooks.
# config.omniauth :github, 'APP_ID', 'APP_SECRET', scope: 'user,public_repo'