GitHub PullRequestReviewCommentEvent at 2014-05-09 20:33:00
Repository: beyondz-platform
Actor: bgrayless
Payload: {"comment":{"url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/comments/12494834","id":12494834,"diff_hunk":"@@ -5,8 +5,14 @@ class Comment < ActiveRecord::Base\n   # This returns comments that needs the student's attention,\n   # currently meaning those from a coach on one of this student's\n   # tasks that is pending revision.\n-  def self.needs_student_attention(student_id)\n+  def self.needs_student_attention(student_id, assignment_id = nil)","path":"app/models/comment.rb","position":5,"original_position":5,"commit_id":"4585ca80347c58ae59914659f08e2f26c9602bd4","original_commit_id":"4585ca80347c58ae59914659f08e2f26c9602bd4","user":{"login":"bgrayless","id":142769,"avatar_url":"https://avatars.githubusercontent.com/u/142769?","gravatar_id":"86513c59216869c3d0abff4403f1b106","url":"https://api.github.com/users/bgrayless","html_url":"https://github.com/bgrayless","followers_url":"https://api.github.com/users/bgrayless/followers","following_url":"https://api.github.com/users/bgrayless/following{/other_user}","gists_url":"https://api.github.com/users/bgrayless/gists{/gist_id}","starred_url":"https://api.github.com/users/bgrayless/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bgrayless/subscriptions","organizations_url":"https://api.github.com/users/bgrayless/orgs","repos_url":"https://api.github.com/users/bgrayless/repos","events_url":"https://api.github.com/users/bgrayless/events{/privacy}","received_events_url":"https://api.github.com/users/bgrayless/received_events","type":"User","site_admin":false},"body":"Here's a basic example:\r\n\r\nscope :for_assignment, -> (assignment_id) { where(assignment_id: assignment_id) }\r\n\r\nJust a lambda with whatever you want in the block.","created_at":"2014-05-09T20:33:00Z","updated_at":"2014-05-09T20:33:00Z","html_url":"https://github.com/beyond-z/beyondz-platform/pull/46#discussion_r12494834","pull_request_url":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/comments/12494834"},"html":{"href":"https://github.com/beyond-z/beyondz-platform/pull/46#discussion_r12494834"},"pull_request":{"href":"https://api.github.com/repos/beyond-z/beyondz-platform/pulls/46"}}}}