diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-18 23:54:37 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-18 23:54:37 -0300 |
commit | 69f19b292ad4b228f2bc5f89732a8ef3b704fab6 (patch) | |
tree | 6ef5368dd403dfb0d293dc8b8885f7d6d0c92a60 /activerecord/README.rdoc | |
parent | df2104e06784a4b98d8f30cb3ea4eee69304e768 (diff) | |
parent | 8593964d9741704ff030e3bdf61e0ed64526ecec (diff) | |
download | rails-69f19b292ad4b228f2bc5f89732a8ef3b704fab6.tar.gz rails-69f19b292ad4b228f2bc5f89732a8ef3b704fab6.tar.bz2 rails-69f19b292ad4b228f2bc5f89732a8ef3b704fab6.zip |
Merge pull request #5412 from tilsammans/stored_attributes
Added `stored_attributes` hash which contains the attributes stored using
ActiveRecord::Store. This allows you to retrieve the list of attributes
you've defined.
class User < ActiveRecord::Base
store :settings, accessors: [:color, :homepage]
end
User.stored_attributes[:settings] # [:color, :homepage]
Diffstat (limited to 'activerecord/README.rdoc')
0 files changed, 0 insertions, 0 deletions