Class: EvilQuery::CommentedPosts

Inherits:
Base
  • Object
show all
Defined in:
lib/evil_query.rb

Instance Method Summary collapse

Methods inherited from Base

#fetch_ids!, #id_sql

Constructor Details

#initialize(user) ⇒ CommentedPosts


35
36
37
# File 'lib/evil_query.rb', line 35

def initialize(user)
  @user = user
end

Instance Method Details

#postsObject


39
40
41
# File 'lib/evil_query.rb', line 39

def posts
  Post.commented_by(@user.person)
end