fix bug in usage example of #unscoped #509

merged 1 commit into from May 11, 2011


None yet
3 participants

gucki commented May 11, 2011

I'm not 100% sure if this is a documentation bug or a bug in AR itself. However the old example in the docs

Post.unscoped {
  limit(10) # Fires "SELECT * FROM posts LIMIT 10"

does not work, it has to be

Post.unscoped {
  Post.limit(10) # Fires "SELECT * FROM posts LIMIT 10"

jonleighton merged commit 6d51f9b into rails:master May 11, 2011


asanghi commented May 11, 2011

@gucki , just FYI, you can commit documentation related fixes in yourself. They get regularly cherrypicked/synched into master.

gucki commented May 11, 2011

Thanks, good to know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment