Skip to content
Browse files

Merge pull request #6 from roastedamoeba/master

Include instance methods manually to avoid ActiveSupport::Concern InstanceMethods deprecation notice
  • Loading branch information...
2 parents 0223317 + 5882c34 commit b95ae4cf577ecd8b92098697cb4565341979968b @skyeagle skyeagle committed Mar 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/mongoid-ancestry.rb
View
4 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 b95ae4c

Please sign in to comment.
Something went wrong with that request. Please try again.