This week in Rails
Hello!This is Greg bringing you the latest news about Rails!
This week's Rails Contributors
This week we had 16 awesome people making Rails better. If you want to be part of this, check out the issues list!
Check argument passed to ActiveSupport::Cache#fetch_multi
ActiveSupport::Cache#fetch_multi raises an ArgumentError if no block passed to it, because it has to write the returned data to the cache. If you don't want that, you should use read_multi.
Fix JSON attribute seralization
This commit fixes a bug with the JSON serialization where nil values where stored as json 'null' instead of SQL NULL, and broke queries searching for NULL values.
Return true if attribute is not changed for update_attribute
update_attribute returns correctly true now when the attribute isn't changed.
Always store errors details information with symbols
When the association is autosaved the details were stored with string keys, which caused some inconsistency with Errors#add and Errors#messages, but it is fixed now.
Fix memoization bug on ActionDispatch::TestRequest#request_method=
ActionDispatch::TestRequest#request_method was memoized before this change and caused a bug if you wanted to override it.
That's it for this week, as usual there were more changes than what I can fit in here, feel free to check all of them yourself here! Until next week!