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:
parent
a6e65666bf
commit
e54dcb8d3a
1 changed files with 1 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue