Permalink
Browse files

avoid @lock_value not initialized warning

  • Loading branch information...
1 parent 2b43021 commit ee541049fdbe5eeebcca2f3b83144a5d803345a9 @spastorino spastorino committed with Yehuda Katz Feb 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit ee54104

Please sign in to comment.