assigns(:foo) should not convert @foo's keys to strings if it happens to be a hash #5082

Merged
merged 1 commit into from Feb 20, 2012

Projects

None yet

2 participants

@willbryant
Contributor

This is an unintended side effect of the code to make assigns(:foo) work the same way as assigns('foo').

This pull request is relative to master, but the same bug and fix apply to all 3.x versions -
3.2: https://github.com/willbryant/rails/tree/assigns_should_not_stringify_values_3-2-stable
3.1: https://github.com/willbryant/rails/tree/assigns_should_not_stringify_values_3-1-stable
3.0: https://github.com/willbryant/rails/tree/assigns_should_not_stringify_values

@tenderlove tenderlove merged commit eff507f into rails:master Feb 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment