Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed extraneous .present? check for AR::Base#reload

  • Loading branch information...
commit c809c47837bf65a7a6e6f0e756e10bcafd2d9821 1 parent d3ccdf6
@jeremyf jeremyf authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/persistence.rb
View
2  activerecord/lib/active_record/persistence.rb
@@ -269,7 +269,7 @@ def reload(options = nil)
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) }

0 comments on commit c809c47

Please sign in to comment.
Something went wrong with that request. Please try again.