diff options
author | Arkadiusz Holko <fastred@fastred.org> | 2010-07-25 05:29:40 -0700 |
---|---|---|
committer | Arkadiusz Holko <fastred@fastred.org> | 2010-07-25 05:29:40 -0700 |
commit | 7fb7a2bd69b86ee0a0e832f597f11d8cc1c787c9 (patch) | |
tree | b0ced3daf1851b769d2f761b30b307c89af7196d /activerecord | |
parent | 9a9fb12623c5d7eb7b3165c56985fbedfcebf886 (diff) | |
download | rails-7fb7a2bd69b86ee0a0e832f597f11d8cc1c787c9.tar.gz rails-7fb7a2bd69b86ee0a0e832f597f11d8cc1c787c9.tar.bz2 rails-7fb7a2bd69b86ee0a0e832f597f11d8cc1c787c9.zip |
Fixes syntax error in "with_scope" example
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 19ccf75b00..c589b32dd8 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1030,7 +1030,7 @@ module ActiveRecord #:nodoc: # 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 |