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