title: How to vendor a modified version of active_support such that it is used in my Rails app?
body: <p>I would like to modify the <code>activesupport</code> gem and then place it in <code>vendor</code>, such that my Rails app uses the modified version instead of the one that ships with Rails by default.</p>
  
  <p>Example of my modification:</p>
  
  <p><strong>lib/active_support/dependencies.rb:</strong></p>
  
  <pre><code>  def require(file)
      puts "--- file: #{file.inspect}"
      result = false
      load_dependency(file) { result = super }
      result
    end
  </code></pre>
  
  <p><strong>Question 1:</strong> How do I place a single gem (e.g. <code>activesupport</code>) inside vendor?</p>
  
  <p><strong>Question 2:</strong> How do I get Rails to use that "vendorized" gem instead of the default?</p>