danielsdeleo / deep_merge

Recursive Merging for Ruby Hashes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using deep_merge with bundler and rails

kmile opened this issue · comments

When I use deep_merge with rails it messes up a couple of things like routing. In the documentation you mention that you should require 'deep_merge/rails_compat'.

When I do that using bundler however, my routing is still messed up. I assume bundler requires the gem automatically during bundler/setup, so the breaking code is still included.

Is there another way to use the gem with bundler? Thanks!

What's in your Gemfile? Did you add the :require => 'deep_merge/rails_compat' option?

Ah, thanks! I will try that right away, couldn't find that option in bundler!

That worked, I presume? I'll go ahead an close this then, reopen it if it still doesn't work.