Goodbits logo black in white circle

This week in Rails

Past issues
May 12 May 23

May 16 2014

Issue #10


Logo for This week in Rails

Issue #10

Welcome to This week in Rails, your weekly inside scoop of interesting commits, pull requests and more from Rails.

Featured

This week's contributors

This week's top contributors include @rafaelfranca, @tenderlove and @senny. Big thanks you to these 45 contributors who helped improve our framework this week. Hope to see you on the list next time! <3 <3 <3

Rails is now tested with ruby-head on Travis CI

This should help both projects find bugs and other incompatibility much sooner.

Check out these commits from Aaron Patterson

Aaron Patterson silently embarked on his Journey to improve Action Pack. From what I can tell, he is going down the path of improving performance of our URL helpers.

New Stuff

More informative fragment caching instrumentation

Now you will have access to the controller name and action name in the fragment caching instrumentation payload. If you are collecting these metrics it should help you better analysis your application's caching performance/hotspots.

Fixed

`rake rails:update` now generates safer configuration on 4.1+

If you upgraded to Rails 4.1 and you ran the rake rails:update task, it might have generated an initializer file called cookies_serializer.rb. By default, it carries the config value :json, which is incompatible with existing cookies and might cause an error for your visitors.

This has now been corrected and will be released with the next patch release on the 4.1 branch. When upgrading an existing application, the value you want is probably :marshal or :hybrid. Consult the upgrade guides for details.

Active Record now raises when using `delete_all` with unsupported options

You should not be using uniq, group, having or offset together with delete_all as those options are ignored by the query generator. This now raises an error instead.

Fixed action named `status` not working correctly

If you have an action named status, it might not work correctly in certain cases in newer version of Rails. This commit fixes that.

Fixed problem with `stored_attributes` and STI classes

Now STI classes correctly inherit their set of stored attributes and won't step over each others' toes.

SSE now supports sending multi-line messages

Now you can stream as many lines as you'd like!

Remove frontbase related tasks from Active Record Rakefile

Million-dollar question: what is a FrontBase?

Not Fixed

`json` and `hstore` columns are no longer Indifferent

On Rails 4.1+, these columns maps to a plain Ruby Hash with String keys instead of a HashWithIndifferentAccess, so you should always access its content with String keys or otherwise convert them manually.

Wrapping up

And that's it for this issue of This week in Rails. As always, there are a lot more interesting things happening on Rails than I can cover here, so I encourage you to check them out!

If you have any feedback for me, please feel free to email me or let me know on twitter!

Thank you for reading! <3 <3 <3

P.S. If you liked what you read, please share this newsletter with your Rails friends!











Previous Issues

  • Sep 27

    Autumn is here, and so is Rails 7 Alpha 2! 🍂

  • Sep 17

    Rails 7 alpha released

  • Sep 12

    Bye-bye Byebug, Hello jsbundling and cssbundling!

  • Aug 28

    Remove default reliance on Sass and more!

  • Aug 21

    Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!

  • Aug 13

    ESM importmap and Marginalia

  • Aug 8

    Active Record goodies and more!

  • Jul 31

    Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!

  • Jul 23

    Active record improvements and much more

  • Jul 19

    Performance and parallel testing improvements and more!

Load More

© 2014-2025 This week in Rails.

Goodbits logo square wrapper Published on Goodbits