aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/CHANGELOG.md
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-20 18:47:57 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-20 18:50:53 -0300
commit1eef814e7a5048086aaee06a31a633db1ee098cc (patch)
tree57bb6dce64fd8ac786a55d5813f6793ae2771734 /activesupport/CHANGELOG.md
parent2ecfed2f5a750f7fb1474b8c9e72a77200f4b808 (diff)
downloadrails-1eef814e7a5048086aaee06a31a633db1ee098cc.tar.gz
rails-1eef814e7a5048086aaee06a31a633db1ee098cc.tar.bz2
rails-1eef814e7a5048086aaee06a31a633db1ee098cc.zip
Add changelog entry and docs about class delegation using the symbol :class
See #7613. [ci skip]
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r--activesupport/CHANGELOG.md29
1 files changed, 24 insertions, 5 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md
index 47f1c8458e..05a573076e 100644
--- a/activesupport/CHANGELOG.md
+++ b/activesupport/CHANGELOG.md
@@ -1,6 +1,22 @@
## Rails 4.0.0 (unreleased) ##
-* `Date.beginning_of_week` thread local and `beginning_of_week` application config option added (default is Monday). *Innokenty Mikhailov*
+* Allow delegation to the class using the `:class` keyword, replacing
+ `self.class` usage:
+
+ class User
+ def self.hello
+ "world"
+ end
+
+ delegate :hello, to: :class
+ end
+
+ *Marc-Andre Lafortune*
+
+* `Date.beginning_of_week` thread local and `beginning_of_week` application
+ config option added (default is Monday).
+
+ *Innokenty Mikhailov*
* An optional block can be passed to `config_accessor` to set its default value
@@ -16,11 +32,14 @@
*Larry Lv*
* ActiveSupport::Benchmarkable#silence has been deprecated due to its lack of
- thread safety. It will be removed without replacement in Rails 4.1. *Steve
- Klabnik*
+ thread safety. It will be removed without replacement in Rails 4.1.
+
+ *Steve Klabnik*
+
+* An optional block can be passed to `Hash#deep_merge`. The block will be invoked
+ for each duplicated key and used to resolve the conflict.
-* An optional block can be passed to `Hash#deep_merge`. The block will be invoked for each duplicated key
- and used to resolve the conflict. *Pranas Kiziela*
+ *Pranas Kiziela*
* ActiveSupport::Deprecation is now a class. It is possible to create an instance
of deprecator. Backwards compatibility has been preserved.