New attribute methods, regex matching and more!
Hello! Tim here with the latest scoop on Ruby on Rails!
Your models just got a sprinkling of a little extra sugar. For any given attribute that changed, you can now do:
Model.attribute_previously_was # => previous value
Check out this PR for a great example of how you can now perform regular expression matching on your MySQL queries!
This fix managed to take down a number of open issues in one go! It addresses a recent regression by ensuring that the order of any user-supplied joins will be preserved as far as Active Record is able to do so.
This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
> [View in browser](http://track.goodbits.io/f/a/NSSOBegQSWqOCD0ByzTFnQ~~/AAB5kwA~/RgRffQdnP0Q_aHR0cHM6Ly9nb29kYml0cy5pby9lbWFpbHMvNWRkZDM3NmMtNGFlZS00NTNkLTg4YTUtYTY1MGNkN2UzN2EwVwNzcGNCCgAeaYKaXXJdbydSGnJhaWxzLXdlZWtseUB6b2V0aGljYWwuY29tWAQAAAAA)