Take me home

Second Rails patch

Published December 14, 2007

Adding Giles Bowkett’s ideas to ActiveSupport.

Here ya go:

http://dev.rubyonrails.org/ticket/10503

It’s pretty simple.

{:a => :b} + {:c => :d}
# => {:a => :b, :c => :d}

{:a => :b, :c => :d} - {:c => :d}
# => {:a => :b}

{:a => :b, :c => :d} - {:c => :x}
# => {:a => :b, :c => :d}

All credits to Giles Bowkett for coming up with this.


Questions or comments?

Feel free to contact me on Twitter, @augustl, or e-mail me at august@augustl.com.