def remove_active_admin_load_paths_from_rails_autoload_and_eager_load
      ActiveSupport::Dependencies.autoload_paths -= load_paths
      Rails.application.config.eager_load_paths  -= load_paths
    end
def remove_active_admin_load_paths_from_rails_autoload_and_eager_load
      ActiveSupport::Dependencies.autoload_paths -= load_paths
      Rails.application.config.eager_load_paths  -= load_paths
    end
Since app/admin is alphabetically before app/models, we have to remove it
 from the host app's +autoload_paths+ to prevent missing constant errors.

 As well, we have to remove it from +eager_load_paths+ to prevent the
 files from being loaded twice in production.