Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbolize_keys! deprecated in rails 3 #2

Open
sgbett opened this issue Oct 5, 2011 · 1 comment
Open

symbolize_keys! deprecated in rails 3 #2

sgbett opened this issue Oct 5, 2011 · 1 comment

Comments

@sgbett
Copy link

sgbett commented Oct 5, 2011

in ./lib/navigator.rb line 102

opts = HashWithIndifferentAccess.new(opts).symbolize_keys!

can be replaced with:

opts = HashWithIndifferentAccess.new(opts)

according to this post:

http://apidock.com/rails/HashWithIndifferentAccess/symbolize_keys%21#276-Does-very-litle

symbolize_keys! just returns the hash itself

@grosser
Copy link

grosser commented Aug 3, 2012

symbolize_keys! has been removed from ActiveSupport::HashWithIndifferentAccess
https://github.com/rails/rails/blob/master/activesupport/lib/active_support/hash_with_indifferent_access.rb#L205

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants