2013-05-16 14:11:27 -04:00
|
|
|
* Raise an error when multiple `included` blocks are defined for a Concern.
|
|
|
|
The old behavior would silently discard previously defined blocks, running
|
|
|
|
only the last one.
|
|
|
|
|
|
|
|
*Mike Dillon*
|
|
|
|
|
2013-05-12 14:04:05 -04:00
|
|
|
* Replace `multi_json` with `json`.
|
|
|
|
|
2013-05-12 14:16:32 -04:00
|
|
|
Since Rails requires Ruby 1.9 and since Ruby 1.9 includes `json` in the standard library,
|
2013-05-12 14:04:05 -04:00
|
|
|
`multi_json` is no longer necessary.
|
|
|
|
|
|
|
|
*Erik Michaels-Ober*
|
|
|
|
|
2013-05-09 08:41:56 -04:00
|
|
|
* Added escaping of U+2028 and U+2029 inside the json encoder.
|
|
|
|
These characters are legal in JSON but break the Javascript interpreter.
|
|
|
|
After escaping them, the JSON is still legal and can be parsed by Javascript.
|
|
|
|
|
2013-05-10 13:39:29 -04:00
|
|
|
*Mario Caropreso + Viktor Kelemen + zackham*
|
2013-05-09 08:41:56 -04:00
|
|
|
|
2013-05-07 15:11:52 -04:00
|
|
|
* Fix skipping object callbacks using metadata fetched via callback chain
|
|
|
|
inspection methods (`_*_callbacks`)
|
|
|
|
|
|
|
|
*Sean Walbran*
|
|
|
|
|
2013-04-15 10:41:27 -04:00
|
|
|
* Add a `fetch_multi` method to the cache stores. The method provides
|
|
|
|
an easy to use API for fetching multiple values from the cache.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
*Daniel Schierbeck*
|
2013-02-26 11:45:20 -05:00
|
|
|
|
2013-04-29 12:06:45 -04:00
|
|
|
Please check [4-0-stable](https://github.com/rails/rails/blob/4-0-stable/activesupport/CHANGELOG.md) for previous changes.
|