Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #6057 from jeremyf/remove-deprecation-warning-due-…

…to-reload

Removed extraneous .present? check for AR::Base#reload
  • Loading branch information...
commit de6d94f9fb86f9566818a0b8af99f745b3d50fe5 2 parents 82029c7 + c809c47
@josevalim josevalim 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) }
Please sign in to comment.
Something went wrong with that request. Please try again.