Skip to content
Browse files

Fixes syntax error in "with_scope" example

  • Loading branch information...
1 parent 9a9fb12 commit 7fb7a2bd69b86ee0a0e832f597f11d8cc1c787c9 @fastred fastred committed Jul 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/base.rb
View
2 activerecord/lib/active_record/base.rb
@@ -1030,7 +1030,7 @@ def all_attributes_exists?(attribute_names)
# class Article < ActiveRecord::Base
# def self.find_with_exclusive_scope
# with_scope(:find => where(:blog_id => 1).limit(1)) do
- # with_exclusive_scope(:find => limit(10))
+ # with_exclusive_scope(:find => limit(10)) do
# all # => SELECT * from articles LIMIT 10
# end
# end

0 comments on commit 7fb7a2b

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