diff options
author | Michael Herold <michael.j.herold+github@gmail.com> | 2017-01-06 09:12:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-06 09:12:18 -0600 |
commit | 10b0eddf11f17e28dd1b73f9c84744f894b1a108 (patch) | |
tree | 46295eb626fe6b95dbfbcabba162c5a31596c718 | |
parent | 87582b589fe04a9f0433478997d42aa8fa798144 (diff) | |
parent | faa728eb0b76ccd755256e5c104d48623366bf87 (diff) | |
download | hashie-10b0eddf11f17e28dd1b73f9c84744f894b1a108.tar.gz |
Merge pull request #383 from boffbowsh/patch-1
Add MergeInitializer to Coercian example
-rw-r--r-- | README.md | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -44,6 +44,7 @@ Coercions allow you to set up "coercion rules" based either on the key or the va ```ruby class Tweet < Hash include Hashie::Extensions::Coercion + include Hashie::Extensions::MergeInitializer coerce_key :user, User end |