Skip to content

Commit

Permalink
Use nil? instead of blank? (not sure it bought us anything).
Browse files Browse the repository at this point in the history
  • Loading branch information
jpr5 committed Jul 16, 2011
1 parent 536735b commit 55ccf3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/mongo/locking/locker.rb
Expand Up @@ -13,7 +13,6 @@

require 'mongo/locking'
require 'active_support/core_ext/numeric/time'
require 'active_support/core_ext/object/blank'

module Mongo
module Locking
Expand Down Expand Up @@ -213,7 +212,7 @@ def parent_for(lockable)
end

def is_root?
self.config[:parent].blank?
self.config[:parent].nil?
end

private
Expand Down

0 comments on commit 55ccf3d

Please sign in to comment.