Using local gem lib

Hi all, Could anybody show me how to include local gem lib? Our project currently using gem lib from responsitory. However, I would like to switch to local gem lib for debugging purpose. Does rails support that?

When I’m developing a gem, I’ll often do this sort of thing. All you need to do is change the gem listing in your Gemfile to include a path argument. I do something like this:

gem 'whatever', path: '../whatever'

You can use a relative or absolute path.

Then bundle install as usual. If you’re in development mode, you don’t even need to re-bundle after you make a change in the gem.