Also, may be worth looking at activesupport core extensions and make sure there is not a naming collision with #deep_merge.