Class: Guard::JRubyMinitest::RailsReloader

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/jruby-minitest/reloaders/rails_reloader.rb

Class Method Summary collapse

Class Method Details

.runObject



4
5
6
7
8
9
10
11
# File 'lib/guard/jruby-minitest/reloaders/rails_reloader.rb', line 4

def self.run(*)
  if defined? ::ActionDispatch::Reloader
    Containment.new.protect do
      ActionDispatch::Reloader.cleanup!
      ActionDispatch::Reloader.prepare!
    end
  end
end