How to override a template file in a gem?


I'm working with Refinery which has a small bug in a partial
file. Is there a way to override this file from within my
application's directory as to fix the bugged line of code?

The file is, from the gem's working dir,

I tried freezing the refinery gem in my vendor/gems dir but later
learned it can't be frozen because it is loaded before the Rails


Found it:

In preinitializer.rb, i modified the last couple of lines:

  require "rubygems"
  if version
    #gem 'refinerycms', version
    #gem 'refinerycms'

  require 'vendor/gems/refinerycms-'