Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MergeInitializer to Coercian example
Before: ```ruby class Tweet < Hash include Hashie::Extensions::Coercion coerce_key :user, User end user_hash = { name: "Bob" } Tweet.new(user: user_hash) # => {} ``` After: ```ruby class Tweet < Hash include Hashie::Extensions::Coercion include Hashie::Extensions::MergeInitializer coerce_key :user, User end user_hash = { name: "Bob" } Tweet.new(user: user_hash) #=> {:user=>#<struct User name={:name=>"Bob"}>} ```
- Loading branch information