class ActiveAdmin::Reloader::Rails32Reloader

nice.
back off the existing reloader. This simplifies our duties… which is
in to speed up applications. So in Rails >= 3.2, we can now piggy
files have actually changed. ActiveAdmin had built this functionality
3.2 introduced a to_prepare block that only gets called when
Reloads the application when using Rails 3.2

def attach!

Attach to Rails and perform the reload on each request.
def attach!
  active_admin_app.load_paths.each do |path|
    rails_app.config.watchable_dirs[path] = [:rb]
  end
  reloader = self
  ActionDispatch::Reloader.to_prepare do
    reloader.reload!
  end
end