Skip to content
This repository has been archived by the owner on Nov 13, 2021. It is now read-only.

Get Evaluators or Evaluated Records

Katsuya Noguchi edited this page Oct 5, 2012 · 1 revision

Get evaluators

You can get all records that have evaluated the target by:

evaluators_for(reputation_name) 

Get evaluated records

You can get all records that have been evaluated by a given source by:

ActiveRecord::Base.evaluated_by(reputation_name, source)

For example:

Question.evaluated_by(:votes, @user)