Class: EvilQuery::CommentedPosts
Instance Method Summary collapse
-
#initialize(user) ⇒ CommentedPosts
constructor
A new instance of CommentedPosts.
- #posts ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(user) ⇒ CommentedPosts
Returns a new instance of CommentedPosts.
44 45 46 |
# File 'lib/evil_query.rb', line 44 def initialize(user) @user = user end |
Instance Method Details
#posts ⇒ Object
48 49 50 |
# File 'lib/evil_query.rb', line 48 def posts Post.commented_by(@user.person) end |