From: <jh...@us...> - 2012-04-27 01:50:59
|
Revision: 328 http://etch.svn.sourceforge.net/etch/?rev=328&view=rev Author: jheiss Date: 2012-04-27 01:50:53 +0000 (Fri, 27 Apr 2012) Log Message: ----------- Switch some instances of ruby 1.9 hash syntax back to 1.8-compatible syntax. Since Rails still supports 1.8 I won't otherwise force folks to 1.9 yet. Modified Paths: -------------- trunk/server/config/initializers/session_store.rb trunk/server/config/initializers/wrap_parameters.rb Modified: trunk/server/config/initializers/session_store.rb =================================================================== --- trunk/server/config/initializers/session_store.rb 2012-04-27 01:50:09 UTC (rev 327) +++ trunk/server/config/initializers/session_store.rb 2012-04-27 01:50:53 UTC (rev 328) @@ -1,6 +1,6 @@ # Be sure to restart your server when you modify this file. -Server::Application.config.session_store :cookie_store, key: '_server_session' +Server::Application.config.session_store :cookie_store, :key => '_server_session' # Use the database for sessions instead of the cookie-based default, # which shouldn't be used to store highly confidential information Modified: trunk/server/config/initializers/wrap_parameters.rb =================================================================== --- trunk/server/config/initializers/wrap_parameters.rb 2012-04-27 01:50:09 UTC (rev 327) +++ trunk/server/config/initializers/wrap_parameters.rb 2012-04-27 01:50:53 UTC (rev 328) @@ -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. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |