diff --git a/lib/flickwerk/railtie.rb b/lib/flickwerk/railtie.rb index a423ead..c064ff5 100644 --- a/lib/flickwerk/railtie.rb +++ b/lib/flickwerk/railtie.rb @@ -5,7 +5,7 @@ require "rails/railtie" class Flickwerk::Railtie < Rails::Railtie - initializer "flickwerk.find_patches" do |app| + initializer "flickwerk.find_patches", before: :eager_load! do |app| app.reloader.to_prepare do Flickwerk.patch_paths.each do |path| Flickwerk::PatchFinder.new(path).call