Skip to content
This repository
Browse code

Merge pull request #11491 from erichkist/ek-revert-unscope-patch

Revert "Fix SyntaxError in guides sample code"
  • Loading branch information...
commit 8ab4656fbc1d1ab691fff7c6f2b131300eaa9589 2 parents ebc5bdb + d4ed68a
Rafael Mendonça França rafaelfranca authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  guides/source/active_record_querying.md
2  guides/source/active_record_querying.md
Source Rendered
@@ -711,7 +711,7 @@ Post.order('id DESC').limit(20).unscope(:order, :limit) = Post.all
711 711 You can additionally unscope specific where clauses. For example:
712 712
713 713 ```ruby
714   -Post.where(id: 10).limit(1).unscope(:where, :limit).order('id DESC') = Post.order('id DESC')
  714 +Post.where(id: 10).limit(1).unscope({ where: :id }, :limit).order('id DESC') = Post.order('id DESC')
715 715 ```
716 716
717 717 ### `only`

0 comments on commit 8ab4656

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