Module: ActiveAdmin::Reloader

Defined in:
lib/active_admin/reloader.rb

Class Method Summary collapse

Class Method Details

.to_complete(*args, &block) ⇒ Object

ActionDispatch::Reloader.to_cleanup is deprecated in Rails 5.0 and will be removed from Rails 5.1

Use ActiveSupport::Reloader if available for Rails 5, fall back to ActionDispatch::Reloader for earlier Rails


17
18
19
20
21
22
23
# File 'lib/active_admin/reloader.rb', line 17

def self.to_complete(*args, &block)
  if defined? ActiveSupport::Reloader
    ActiveSupport::Reloader.to_complete(*args, &block)
  else
    ActionDispatch::Reloader.to_cleanup(*args, &block)
  end
end

.to_prepare(*args, &block) ⇒ Object

ActionDispatch::Reloader.to_prepare is deprecated in Rails 5.0 and will be removed from Rails 5.1

Use ActiveSupport::Reloader if available for Rails 5, fall back to ActionDispatch::Reloader for earlier Rails


6
7
8
9
10
11
12
# File 'lib/active_admin/reloader.rb', line 6

def self.to_prepare(*args, &block)
  if defined? ActiveSupport::Reloader
    ActiveSupport::Reloader.to_prepare(*args, &block)
  else
    ActionDispatch::Reloader.to_prepare(*args, &block)
  end
end