3 ms·
Ok, that is good to hear. Trust restored :) I was fearing you were using unsafe mass assignment everywhere... Would you mind sharing any patters you use to DRY
by MartinMond 15y ago
Ok, that is good to hear. Trust restored :) I was fearing you were using unsafe mass assignment everywhere...
Would you mind sharing any patters you use to DRY up explicit assignment?
- technoweenie 15y agoWe use this (posted by @dhh) https://gist.github.com/1975644 https://gist.github.com/1975644 in some spots, or simply just Hash#slice. We have some other thoughts on making params access more explicit. The problem with explicit patterns is they can get left out if a developer forgets.