Permalink
Browse files

Tests work form Mongoid 3&4

  • Loading branch information...
1 parent 98459af commit 56203f9b7fbf23f7d8acd8cc3ddb3ca7449b1a99 @deiga deiga committed Feb 23, 2014
Showing with 4 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +3 −1 lib/mongoid-ancestry/class_methods.rb
View
@@ -41,3 +41,4 @@ pkg
# For vim:
#*.swp
.ruby-version
+Gemfile.lock
@@ -1,6 +1,8 @@
module Mongoid
module Ancestry
- include Mongoid::Attributes::Dynamic
+ unless Mongoid.mongoid3?
+ include Mongoid::Attributes::Dynamic
+ end
module ClassMethods
def has_ancestry(opts = {})
defaults = {

0 comments on commit 56203f9

Please sign in to comment.