aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-11-09 21:03:09 +0100
committerYves Senn <yves.senn@gmail.com>2013-11-09 21:05:28 +0100
commit849400c36d8d03ad7d8b6d60afb247c293d292b4 (patch)
tree8b5dd5333de10de027328dd21fbb907b9531329a /activerecord
parent4f006122870abc2433e6ffd24b9aa4ce614bd7dc (diff)
downloadrails-849400c36d8d03ad7d8b6d60afb247c293d292b4.tar.gz
rails-849400c36d8d03ad7d8b6d60afb247c293d292b4.tar.bz2
rails-849400c36d8d03ad7d8b6d60afb247c293d292b4.zip
improve Active Record Store docs when using PG types. [ci skip].
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/store.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/store.rb b/activerecord/lib/active_record/store.rb
index a3b23c0037..186a737561 100644
--- a/activerecord/lib/active_record/store.rb
+++ b/activerecord/lib/active_record/store.rb
@@ -15,9 +15,10 @@ module ActiveRecord
# You can set custom coder to encode/decode your serialized attributes to/from different formats.
# JSON, YAML, Marshal are supported out of the box. Generally it can be any wrapper that provides +load+ and +dump+.
#
- # NOTE - If you are using special PostgreSQL columns like +hstore+ or +json+ there is no need for
- # the serialization provided by +store+. You can simply use +store_accessor+ instead to generate
- # the accessor methods.
+ # NOTE - If you are using PostgreSQL specific columns like +hstore+ or +json+ there is no need for
+ # the serialization provided by +store+. Simply use +store_accessor+ instead to generate
+ # the accessor methods. Be aware that these columns use a string keyed hash and do not allow access
+ # using a symbol.
#
# Examples:
#