Skip to content

Commit

Permalink
removes ruby 1.9 specific hash syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fabrik42 committed Apr 26, 2012
1 parent 95df598 commit 6a080be
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.

ActiveRecordDummy::Application.config.session_store :cookie_store, key: '_active_record_dummy_session'
ActiveRecordDummy::Application.config.session_store :cookie_store, :key => '_active_record_dummy_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion spec/mongoid_dummy/config/initializers/session_store.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.

MongoidDummy::Application.config.session_store :cookie_store, key: '_mongoid_dummy_session'
MongoidDummy::Application.config.session_store :cookie_store, :key => '_mongoid_dummy_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Expand Down
2 changes: 1 addition & 1 deletion spec/mongoid_dummy/config/initializers/wrap_parameters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

# 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

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Be sure to restart your server when you modify this file.

Dummy::Application.config.session_store :cookie_store, key: '_dummy_session'
Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 6a080be

Please sign in to comment.