Permalink
Browse files

only support mongoid if the version is supported

  • Loading branch information...
1 parent 05bd413 commit 580b46db38ac3e2a21f876f378d17fd73961ee62 Adam Vaughan committed Oct 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bullet/dependency.rb
View
@@ -3,7 +3,7 @@ module Dependency
def mongoid?
@mongoid ||= begin
require 'mongoid'
- true
+ mongoid_version.present?
rescue LoadError
false
end

0 comments on commit 580b46d

Please sign in to comment.