File session-old-hash.patch of Package hawk
Index: hawk-0.5.2/hawk/config/initializers/cookie_verification_secret.rb
===================================================================
--- hawk-0.5.2.orig/hawk/config/initializers/cookie_verification_secret.rb
+++ hawk-0.5.2/hawk/config/initializers/cookie_verification_secret.rb
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.
-Hawk::Application.config.session_store :cookie_store, key: '_hawk_session'
+Hawk::Application.config.session_store :cookie_store, :key => '_hawk_session'
SESSION_SECRET_FILE = File.join(Rails.root, 'tmp', 'session_secret')
Index: hawk-0.5.2/hawk/config/initializers/session_store.rb
===================================================================
--- hawk-0.5.2.orig/hawk/config/initializers/session_store.rb
+++ hawk-0.5.2/hawk/config/initializers/session_store.rb
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.
-Hawk::Application.config.session_store :cookie_store, key: '_hawk_session'
+Hawk::Application.config.session_store :cookie_store, :key => '_hawk_session'
# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Index: hawk-0.5.2/hawk/config/initializers/wrap_parameters.rb
===================================================================
--- hawk-0.5.2.orig/hawk/config/initializers/wrap_parameters.rb
+++ hawk-0.5.2/hawk/config/initializers/wrap_parameters.rb
@@ -5,7 +5,7 @@
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
ActiveSupport.on_load(:action_controller) do
- wrap_parameters format: [:json]
+ wrap_parameters :format => [:json]
end
# Disable root element in JSON by default.