From c809c47837bf65a7a6e6f0e756e10bcafd2d9821 Mon Sep 17 00:00:00 2001 From: Jeremy Friesen Date: Sun, 29 Apr 2012 13:33:54 -0400 Subject: Removed extraneous .present? check for AR::Base#reload --- activerecord/lib/active_record/persistence.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/persistence.rb') diff --git a/activerecord/lib/active_record/persistence.rb b/activerecord/lib/active_record/persistence.rb index d6ffa1a9f7..4a987c2343 100644 --- a/activerecord/lib/active_record/persistence.rb +++ b/activerecord/lib/active_record/persistence.rb @@ -269,7 +269,7 @@ module ActiveRecord clear_association_cache fresh_object = - if options.present? && options[:lock] + if options && options[:lock] self.class.unscoped { self.class.lock.find(id) } else self.class.unscoped { self.class.find(id) } -- cgit v1.2.3