```ruby
module Mongoid
  module Ancestry
    extend ActiveSupport::Concern

    autoload :ClassMethods,    'mongoid-ancestry/class_methods'
    autoload :InstanceMethods, 'mongoid-ancestry/instance_methods'
    autoload :Error,           'mongoid-ancestry/exceptions'

    included do
      cattr_accessor :base_class
      self.base_class = self
    end
  end
end
```

Include instance methods manually to avoid ActiveSupport::Concern InstanceMethods deprecation notice
user
```ruby
module Mongoid
  module Ancestry
    extend ActiveSupport::Concern

    autoload :ClassMethods,    'mongoid-ancestry/class_methods'
    autoload :Error,           'mongoid-ancestry/exceptions'

    included do
      cattr_accessor :base_class
      self.base_class = self
      
      require 'mongoid-ancestry/instance_methods'
      include InstanceMethods
    end
  end
end
```
assistant