Skip to content

Commit

Permalink
only support mongoid if the version is supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Vaughan committed Oct 4, 2012
1 parent 05bd413 commit 580b46d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bullet/dependency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module Dependency
def mongoid?
@mongoid ||= begin
require 'mongoid'
true
mongoid_version.present?
rescue LoadError
false
end
Expand Down

0 comments on commit 580b46d

Please sign in to comment.