Skip to content

Commit

Permalink
Create factories earlier in the lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
shageman committed Dec 4, 2023
1 parent 5f872a8 commit 0d4c706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packs/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d4c706

Please sign in to comment.