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
1 changed files with 1 additions and 8 deletions

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
Rails.application.reloader.reload!
wait_for_rails_to_reload
end