56 people helped make Rails even more awesome this week.
Ever wondered what is the difference between
Time? Checkout this enlightening gist on when you would use each which also landed in the ruby documentation.
Meet the 16 official teams that will be participating in the 2015 Rails Girls Summer of Code. We wish them the best of luck.
Sometimes there’s a configuration your app simply needs to function. Now that important client secret can raise if it hasn’t been set. Just go out with a bang:
Currently all mails sent with
deliver_later are put in the mailers queue. This patch keeps that default but allows the queue name to be configured globally via
config.action_mailer.deliver_later_queue_name. See also related documentation commit.
As it turns out using a block variable instead of a “magic” global variable is not only faster but easier to read.
This allows easier integration with Active Record, such that
ActiveRecord::Base#pluck will now use
Enumerable#pluck if the relation is loaded, without needing to hit the database.
In order to discourage ties in the controller tests to the internal structure of how your views are organized,
assert_template have both been removed and extracted to the gem rails-controller-testing.
suppress is now being applied to non-bang
update methods. It was also missing from
create_* methods provided by singular associations. See gist for more details.
That’s a wrap
That’s all for This week in Rails. As always, there are many more changes than we have room to cover here, but feel free to check them out yourself!
Have you been thinking about writing for us, but you’re scared of putting yourself out there? Don’t worry, you can help our editors improve their writing with thoughtful critique and general grammar policing.
You up for that? Tell Godfrey today.