Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Clarify that the :match_all option specifies an exact set of tags to search for. Any object instance with additional tags is not returned.
  • Loading branch information
praveenangyan authored Jan 11, 2017
1 parent f55b20e commit c7f8669
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ User.tagged_with("awesome").by_join_date
User.tagged_with("awesome").by_join_date.paginate(:page => params[:page], :per_page => 20)

# Find users that matches all given tags:
# NOTE: This only matches users that have the exact set of specified tags. If a user has additional tags, they are not returned.
User.tagged_with(["awesome", "cool"], :match_all => true)

# Find users with any of the specified tags:
Expand Down

0 comments on commit c7f8669

Please sign in to comment.