Perhaps its better to separate the relation definition from the query you want to make.
class Post
has_many :commenters, through: :comments
def last_commenters
comments.order('created_at DESC').limit(10).map{|c|c.commenter}.uniq
end
end
Disclaimer: code not tested.