Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #128 from darrencauthon/patch-1

Docs suggestion from the previously confused
  • Loading branch information...
commit 3d9ef77ad686a59ea3513d6d95dd0b2c226c6ffb 2 parents ee61e79 + 327455e
@diogob authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 README.md
View
4 README.md
@@ -23,7 +23,7 @@ user.settings['theme']
##Note about Rails 4
-If you are using Rails 4 you don't need this gem as ActiveRecord 4 provides HStore type support out of the box.
+If you are using Rails 4 you don't need this gem as ActiveRecord 4 provides HStore type support out of the box. ActiveRecord will see your HStore column and do all of the work for you. **Additional code is no longer needed.**
You can test it with a migration like this:
```ruby
@@ -39,6 +39,8 @@ end
Its model:
```ruby
class Test < ActiveRecord::Base
+ # before Rails 4, we'd have to this here:
+ # serialize :data, ActiveRecord::Coders::Hstore
end
```
Please sign in to comment.
Something went wrong with that request. Please try again.