Raise an error when multiple
includedblocks are defined for a Concern. The old behavior would silently discard previously defined blocks, running only the last one.
Since Rails requires Ruby 1.9 and since Ruby 1.9 includes
jsonin the standard library,
multi_jsonis no longer necessary.
Mario Caropreso + Viktor Kelemen + zackham
Fix skipping object callbacks using metadata fetched via callback chain inspection methods (
fetch_multimethod to the cache stores. The method provides an easy to use API for fetching multiple values from the cache.
# Calculating scores is expensive, so we only do it for posts # that have been updated. Cache keys are automatically extracted # from objects that define a #cache_key method. scores = Rails.cache.fetch_multi(*posts) do |post| calculate_score(post) end
Please check 4-0-stable for previous changes.