Skip to content

Commit

Permalink
Revert to FactoryBot initialization without Rails lifecycle methods (…
Browse files Browse the repository at this point in the history
…was: Create factories earlier in the lifecycle) (#76)
  • Loading branch information
shageman authored Dec 7, 2023
1 parent 30976ed commit cb71945
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/packs/rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ module Rails
class Railtie < ::Rails::Railtie
config.before_configuration do |app|
Integrations::Rails.new(app)

Integrations::FactoryBot.new(app)

# This is not used within packs-rails. Rather, this allows OTHER tools to
# hook into packs-rails via ActiveSupport hooks.
ActiveSupport.run_load_hooks(:packs_rails, Packs)
end

config.after_initialize do |app|
Integrations::FactoryBot.new(app)
end
end
end
end

0 comments on commit cb71945

Please sign in to comment.