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:
parent
a6e65666bf
commit
e54dcb8d3a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue