Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

avoid @lock_value not initialized warning

  • Loading branch information...
commit ee541049fdbe5eeebcca2f3b83144a5d803345a9 1 parent 2b43021
@spastorino spastorino authored Yehuda Katz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/relation/query_methods.rb
View
2  activerecord/lib/active_record/relation/query_methods.rb
@@ -174,7 +174,7 @@ def build_arel
arel = arel.lock
when String
arel = arel.lock(@lock_value)
- end
+ end if defined?(@lock_value)
arel
end
Please sign in to comment.
Something went wrong with that request. Please try again.