diff --git a/lib/packs/rails/railtie.rb b/lib/packs/rails/railtie.rb index e89dfc0..741aa7b 100644 --- a/lib/packs/rails/railtie.rb +++ b/lib/packs/rails/railtie.rb @@ -11,7 +11,7 @@ class Railtie < ::Rails::Railtie ActiveSupport.run_load_hooks(:packs_rails, Packs) end - config.after_initialize do |app| + config.before_initialize do |app| Integrations::FactoryBot.new(app) end end