Notes posted by adzdavies
RSS feed
0 thanks
Using strings as association names - beware of HashWithIndifferentAccess
If you merge a normal Hash into a HashWithIndifferentAccess, then the keys will convert to strings…
This will likely bite you if the merge is passed to AR find: as netmaniac said “Beware, that using strings as association names, when giving Hash to :include will render errors”.
Beware that params from your controller are HashWithIndifferentAccess like.