Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Readme.rdoc updated to fix wrong usage of scope in example code #286

Closed
wants to merge 1 commit into from

2 participants

@char-star

The scope defined in the User model and the actual used scoped are different. Will break the example code.

@char-star char-star Updating example code to fix usage of wrong scope
The scope defined in the User model and the actual used scoped are different. Will break the example code.
f74d1f3
@tilsammans
Collaborator

This was already fixed in c4fb509.

@tilsammans tilsammans closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 25, 2012
  1. @char-star

    Updating example code to fix usage of wrong scope

    char-star authored
    The scope defined in the User model and the actual used scoped are different. Will break the example code.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.rdoc
View
4 README.rdoc
@@ -89,8 +89,8 @@ compatibility with the will_paginate gem:
scope :by_join_date, order("created_at DESC")
end
- User.tagged_with("awesome").by_date
- User.tagged_with("awesome").by_date.paginate(:page => params[:page], :per_page => 20)
+ User.tagged_with("awesome").by_join_date
+ User.tagged_with("awesome").by_join_date.paginate(:page => params[:page], :per_page => 20)
# Find a user with matching all tags, not just one
User.tagged_with(["awesome", "cool"], :match_all => true)
Something went wrong with that request. Please try again.