Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Docs suggestion from the previously confused
Browse files Browse the repository at this point in the history
  • Loading branch information
darrencauthon committed Jun 6, 2015
1 parent ee61e79 commit d9512d5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -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
Expand All @@ -38,7 +38,9 @@ end

Its model:
```ruby
class Test < ActiveRecord::Base
class Test < ActiveRecord::
# before Rails 4, we'd have to this here:
# serialize :data, ActiveRecord::Coders::Hstore
end
```

Expand Down

0 comments on commit d9512d5

Please sign in to comment.