I have a bunch of custom classes in my Rails 3.2 app in lib folder: i.e. extending ActiveRecord, etc. It all works fine.
However I\'m trying to add a couple of custo
Your patch is never going to be loaded because autoload is only invoked when Rails can't find a constant. Since the FileUtils
constant already exists, the autoloader is never called, and your file is never loaded.
Simply require it from an initializer.
require File.join(Rails.root, "lib/file_utils.rb")