


















Hello everyone!
Jon here bringing you This Week in Rails from the sunny surf town of Biarritz, France ๐ซ๐ทโ๏ธ
Ready to jump in and catch a few waves of updates?
Grab your surfboard and letโs go!
Please share some aloha ๐ธ for the 27 daring riders who contributed to Rails (and world happiness) this week, including 4 committers who caught their first wave ๐๐! You can, too! Check out the current issues if youโd like to paddle out, make new friends and join the fun ๐
Thanks to Jeremy Daer, Ryuta Kamizono, Vipul A M and Ian Gilfillan, Active Record is now fully compatible with MariaDB โค๏ธ๐๐๐โฆ click on our heroesโ names to open the commits and see what went down behind the scenes!
MariaDB is a community-developed open source fork of MySQL. Notable users include Wikipedia, Facebook, Google and, yes, Basecamp 3! Here is a good Wikipedia article about MariaDB and MySQL history. Game on!
Everybody out of the pool! ๐ It was getting crowded in the water, but luckily our experienced Baywatch lifeguards Matthew, Sean and Jeremy ๐ were on hand to, er, pool their efforts to ensure your database connections are managed automatically when Action Cable is involved! Synchronized water ballet, anyone?
No Strings are better than NoSQL, right? Ankit noticed that the number_to_delimited and number_to_rounded helper methods were creating duplicate strings. Check out the pull request to see how he improved it using derailed_benchmarks to check object allocations ๐ฐ
max_time edge casesRails has the need for speed ๐จ and surfers Blake and Xavier managed a crowd-pleasing acceleration maneuver in AS::FileUpdateChecker using a single loop memoization rather than multiple loops, benchmarked using benchmark-ips. Itโs good stuff; see the PR for more! ๐ฆ
attribute_changed? in ActiveModel::DirtyFaster than relocating to San Francisco โ๏ธ (and much more fun), sun-drenched rider Lihan was able to speed up attribute_changed? by setting the default options parameter to nil instead of a hash, and checking the result with benchmark-ips ๐
Lifeguard Jeremy came across a common, hard-to-detect ๐ in the water: Local message changes werenโt being enqueued with the delivery job when using #deliver_later. This now raises a friendly exception to make sure your message modifications are made in either (a) the mailer method or (b) using a custom Active Job. Nice catch! ๐
While surfing Mongoidโs test suite, an error alerted our champion Emily ๐๐พ to a change of behavior in ActiveSupport#symbolize_keys: Rails 4.1 returned a Hash but 4.2/5.0 returned self.class. This launched an interesting discussion on the merits of expected behavior versus matching Rubyโs behavior. Have a look! ๐
Thatโs all for This Week on the Beach with Railsโข ๐ด. There were many more improvements (and great waves) than we have room to cover here, so donโt hesitate to jump in and check them out yourselfโฆ the waterโs warm and the locals are friendly! ๐ฃ๐พ
See you next week! ๐๐๐๐
ๆญคๅ ๅฎน็ฑๆฏๆง่ๅ(RSS้ ่ฏปๅจ)่ชๅจ่ๅๆด็๏ผไป ไพ้ ่ฏปๅ่ใ ๅๆๆฅ่ช โ ็ๆๅฝๅไฝ่ ๆๆใ