How do you apply a patch for Rails 3?
I am currently running Rails with gem version 3.0.7.
So in the gem file I have
gem rails '3.0.7'
I want to apply a patch found on git开发者_StackOverflow中文版 rails. I also noticed that the patch is in the master branch, but I could not use the master version since it has some conflicts with other gems that I use.
So how can I apply a patch found on git to rails 3.0.7?
Thanks.
You can fork rails on github, throw away all commits you don't need (e.g. with rebase) and use the :git
option in the Gemfile to point to your repo.
精彩评论