Permalink
Browse files

Include instance methods manually to avoid ActiveSupport::Concern Ins…

…tanceMethods deprecation notice
  • Loading branch information...
1 parent 0223317 commit 5882c3475afa44e2ad0923b8af00fe1d73ea3a7e @tgjones tgjones committed Mar 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/mongoid-ancestry.rb
@@ -3,12 +3,14 @@ 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
+
+ require 'mongoid-ancestry/instance_methods'
+ include InstanceMethods
end
end
end

0 comments on commit 5882c34

Please sign in to comment.