开发者

How do I override Activerecord gem with my own in rails?

We've found an error in the开发者_StackOverflow中文版 code for multi-schema databases in ActiveRecord (we're fairly positive it's an error, atleast ;). So we've patched the file and submitted a pull request to rails core etc.

However, we would like to deploy our fix and not await the inclusion of our fix in a next release of rails. Our app is hosted on Heroku.

Question:

How do i specify in my Gemfile that it should pull the activerecord gem not from its default location but, for example, from my repository at Github ?

Thanks for your help and time,

Erwin


You can add a :git parameter with git path to your Gemfile:

gem "nokogiri", :git => "git://github.com/tenderlove/nokogiri.git"

It is very well described at http://gembundler.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜