I’ve run into an issue that was just recently patched in a rails branch a few days ago. Specifically I need this patch
Now that’s a pretty simple patch that could just be manually applied, however I’d like to better understand the git and github way of tackling this.
How would one go about pulling this in for utilization? It seems from some comments that perhaps this has been integrated upstream now to Rails proper, however I am not sure nor is it clear how to figure this out.
Notwithstanding, I need this patch. Perhaps it would be wise to run a local Rails repo and pull this into projects? Or is there a preferred way?
I found this which is dated back to Rails 2.x and it appears to have an interesting suggestion of pointing to a local repo:
gem 'rails', :path => 'rails/railties'
gem 'actionmailer', :path => 'rails/actionmailer'
gem 'actionpack', :path => 'rails/actionpack'
gem 'activerecord', :path => 'rails/activerecord'
gem 'activesupport', :path => 'rails/activesupport'
However, again, I’d really like to know the most acceptable or standard approach to pulling in things you may need into Rails or any project for that matter where you really want to run with a release, but you’ve gotta have a patch here and now.
Put this into your Gemfile
gem rails, :git => "git://github.com/rails/rails.git", :branch => "master"And run
bundle update railswhen you need to pull latest changes. It is quite common pattern and you can use it for any gem.