Skip to content
Browse files

Fix scope typo in add_lock! Closes #6482. [zubek]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5907 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 41198ad commit c302cdfcc4e70d1adbc5fb4c89d361e446349800 @jeremy jeremy committed Jan 12, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -1143,7 +1143,7 @@ def add_limit!(sql, options, scope = :auto)
# The optional scope argument is for the current :find scope.
# The :lock option has precedence over a scoped :lock.
def add_lock!(sql, options, scope = :auto)
- scope = scope(:find) if :auto == :scope
+ scope = scope(:find) if :auto == scope
options = options.reverse_merge(:lock => scope[:lock]) if scope
connection.add_lock!(sql, options)
end

0 comments on commit c302cdf

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