Skip to content

Commit

Permalink
Use a method compatible with mongoid-observers to determinine the ver…
Browse files Browse the repository at this point in the history
…sion of Mongoid.
  • Loading branch information
zeitnot authored and dblock committed Feb 9, 2015
1 parent e4cc6f0 commit 8303884
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

* [#127](https://github.com/aq1018/mongoid-history/pull/127) - Fix gem naming per [rubygems](http://guides.rubygems.org/name-your-gem/) specs, now you can `require 'mongoid/history'` - [@nofxx](https://github.com/nofxx).
* [#129](https://github.com/aq1018/mongoid-history/pull/129) - Support multiple levels of embedded polimorphic documents - [@BrunoChauvet](https://github.com/BrunoChauvet).
* [#123](https://github.com/aq1018/mongoid-history/pull/123): Use a method compatible with mongoid-observers to determinine the version of Mongoid - [@zeitnot](https://github.com/zeitnot).
* Your contribution here.

0.4.4 (7/29/2014)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/history/mongoid.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Mongoid
module History
def self.mongoid3?
::Mongoid.const_defined? :Observer # deprecated in Mongoid 4.x
Mongoid::VERSION =~ /^3\./
end
end
end

0 comments on commit 8303884

Please sign in to comment.