New attribute methods, regex matching and more!

New attribute methods, regex matching and more!

Hello! Tim here with the latest scoop on Ruby on Rails!


New *_previously_was attribute methods!

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


Support for matches_regex in MySQL

Check out this PR for a great example of how you can now perform regular expression matching on your MySQL queries!


Preservation of join order fixed

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.

28 people contributed to Rails last week, including 3 for the first time. If you’d like to see yourself up there, why not check out the list of open issues.
Until next time!

This Week in Rails · 30 N Racine #200 · Chicago IL 60607 · USA
Unsubscribe

                      	> [View in browser](http://track.goodbits.io/f/a/NSSOBegQSWqOCD0ByzTFnQ~~/AAB5kwA~/RgRffQdnP0Q_aHR0cHM6Ly9nb29kYml0cy5pby9lbWFpbHMvNWRkZDM3NmMtNGFlZS00NTNkLTg4YTUtYTY1MGNkN2UzN2EwVwNzcGNCCgAeaYKaXXJdbydSGnJhaWxzLXdlZWtseUB6b2V0aGljYWwuY29tWAQAAAAA)