1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot_rails.git synced 2022-11-09 11:49:18 -05:00

Remove branch for rails 4.2 reloader

We are no longer testing against Rails 4.2, so we no longer need to
branch for the Rails 4.2 style reloader
This commit is contained in:
Daniel Colson 2020-04-25 22:41:52 -04:00
parent a6e65666bf
commit e54dcb8d3a

View file

@ -39,14 +39,7 @@ describe FactoryBotRails::Railtie do
end
def reload_rails!
if defined? ActiveSupport::Reloader
Rails.application.reloader.reload!
else
# For Rails 4
ActionDispatch::Reloader.cleanup!
ActionDispatch::Reloader.prepare!
end
wait_for_rails_to_reload
end