aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG.md
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-05-25 09:42:28 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-06-18 23:54:13 -0300
commit8593964d9741704ff030e3bdf61e0ed64526ecec (patch)
tree6ef5368dd403dfb0d293dc8b8885f7d6d0c92a60 /activerecord/CHANGELOG.md
parent757f7231cccd2bcbfb83fba5cb203fb320f3e613 (diff)
downloadrails-8593964d9741704ff030e3bdf61e0ed64526ecec.tar.gz
rails-8593964d9741704ff030e3bdf61e0ed64526ecec.tar.bz2
rails-8593964d9741704ff030e3bdf61e0ed64526ecec.zip
Refactor and use class_attribute
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r--activerecord/CHANGELOG.md14
1 files changed, 10 insertions, 4 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md
index 633198c4bb..10bfe1945a 100644
--- a/activerecord/CHANGELOG.md
+++ b/activerecord/CHANGELOG.md
@@ -1,10 +1,16 @@
## Rails 4.0.0 (unreleased) ##
-* Added a `stored_attributes` hash which contains the attributes stored
- using ActiveRecord::Store. This allows you to retrieve the list of
- attributes you've defined.
+* Added `stored_attributes` hash which contains the attributes stored using
+ ActiveRecord::Store. This allows you to retrieve the list of attributes
+ you've defined.
- *Joost Baaij*
+ class User < ActiveRecord::Base
+ store :settings, accessors: [:color, :homepage]
+ end
+
+ User.stored_attributes[:settings] # [:color, :homepage]
+
+ *Joost Baaij & Carlos Antonio da Silva*
* `composed_of` was removed. You'll have to write your own accessor
and mutator methods if you'd like to use value objects to represent some