This project is archived and is in readonly mode.
ActiveSupport::OrderedOptions calls to_sym redundantly
-
Jeff Kreeftmeijer
- State changed from new to verified
- Assigned user set to Santiago Pastorino
- Importance changed from to Low
Verified. Applies cleanly to master and test pass.
test_loopinginordered_options_test(https://github.com/rails/rails/blob/master/activesupport/test/order...) tests if strings are converted to symbols.Nice one, Ben! :)
-
Ben Orenstein
Thanks Jeff!
If applied, this will by my first non-documentation, non-test-code patch :)
-
Josh Kalderimis
Hey Ben,
Generally the patch is good but you have also removed the
require "ordered_hash", is there a particular reason?The rule of thumb is if you only require a subset of ActiveSupport into your project, like
ordered_options, everything that is required for the requires should also be setup and required correctly as well, eg.ordered_hash.If you can fix this and include a new updated patch it would be appreciated.
Thanks,
Josh
-
Ben Orenstein
Oops. That change snuck in there accidentally.
Thanks for the catch, Josh.
This new patch fixes that.
-
Josh Kalderimis
Hey Ben,
Thanks for the patch, looks good to me. +1.
Santiago, can you please take a look and do your magic :)
Thanks again Ben!
Josh
-
Repository
- State changed from verified to committed
(from [726599df984daca45afe5b969c74b416fcd6c11a]) Remove redundant to_sym call.
[#6483 ActiveSupport::OrderedOptions calls to_sym redundantly state:committed]
Signed-off-by: Santiago Pastorino santiago@wyeworks.com
https://github.com/rails/rails/commit/726599df984daca45afe5b969c74b...
