module ActiveAdmin::Reloader
def self.to_prepare(*args, &block)
ActionDispatch::Reloader.to_prepare is deprecated in Rails 5.0 and will be removed from Rails 5.1
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