{"action":"created","comment":{"url":"https://api.github.com/repos/MistaTwista/flashcards/pulls/comments/37868052","id":37868052,"diff_hunk":"@@ -2,6 +2,12 @@ class Card < ActiveRecord::Base\n   before_validation :normalize_fields, :set_default_review_date\n   validates :original_text, :translated_text, :review_date, presence: true\n   validate :not_equal_fields\n+  scope :reminder, -> { where(\"review_date < ?\", Time.now+1.day).order(\"RANDOM()\").first }","path":"app/models/card.rb","position":4,"original_position":4,"commit_id":"1af102d3d192d3a8936cce448c41b9b71dcc866c","original_commit_id":"1af102d3d192d3a8936cce448c41b9b71dcc866c","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [90/80]<br>Surrounding space missing for operator '+'.","created_at":"2015-08-25T14:02:58Z","updated_at":"2015-08-25T14:02:58Z","html_url":"https://github.com/MistaTwista/flashcards/pull/6#discussion_r37868052","pull_request_url":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/MistaTwista/flashcards/pulls/comments/37868052"},"html":{"href":"https://github.com/MistaTwista/flashcards/pull/6#discussion_r37868052"},"pull_request":{"href":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6","id":43289273,"html_url":"https://github.com/MistaTwista/flashcards/pull/6","diff_url":"https://github.com/MistaTwista/flashcards/pull/6.diff","patch_url":"https://github.com/MistaTwista/flashcards/pull/6.patch","issue_url":"https://api.github.com/repos/MistaTwista/flashcards/issues/6","number":6,"state":"open","locked":false,"title":"Card trainer at homepage","user":{"login":"MistaTwista","id":2895309,"avatar_url":"https://avatars.githubusercontent.com/u/2895309?v=3","gravatar_id":"","url":"https://api.github.com/users/MistaTwista","html_url":"https://github.com/MistaTwista","followers_url":"https://api.github.com/users/MistaTwista/followers","following_url":"https://api.github.com/users/MistaTwista/following{/other_user}","gists_url":"https://api.github.com/users/MistaTwista/gists{/gist_id}","starred_url":"https://api.github.com/users/MistaTwista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MistaTwista/subscriptions","organizations_url":"https://api.github.com/users/MistaTwista/orgs","repos_url":"https://api.github.com/users/MistaTwista/repos","events_url":"https://api.github.com/users/MistaTwista/events{/privacy}","received_events_url":"https://api.github.com/users/MistaTwista/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-25T14:02:49Z","updated_at":"2015-08-25T14:02:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0376b4a00e1c0312498f0904113097e37e9b96cd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6/commits","review_comments_url":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6/comments","review_comment_url":"https://api.github.com/repos/MistaTwista/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MistaTwista/flashcards/issues/6/comments","statuses_url":"https://api.github.com/repos/MistaTwista/flashcards/statuses/1af102d3d192d3a8936cce448c41b9b71dcc866c","head":{"label":"MistaTwista:t5-simple-trainer","ref":"t5-simple-trainer","sha":"1af102d3d192d3a8936cce448c41b9b71dcc866c","user":{"login":"MistaTwista","id":2895309,"avatar_url":"https://avatars.githubusercontent.com/u/2895309?v=3","gravatar_id":"","url":"https://api.github.com/users/MistaTwista","html_url":"https://github.com/MistaTwista","followers_url":"https://api.github.com/users/MistaTwista/followers","following_url":"https://api.github.com/users/MistaTwista/following{/other_user}","gists_url":"https://api.github.com/users/MistaTwista/gists{/gist_id}","starred_url":"https://api.github.com/users/MistaTwista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MistaTwista/subscriptions","organizations_url":"https://api.github.com/users/MistaTwista/orgs","repos_url":"https://api.github.com/users/MistaTwista/repos","events_url":"https://api.github.com/users/MistaTwista/events{/privacy}","received_events_url":"https://api.github.com/users/MistaTwista/received_events","type":"User","site_admin":false},"repo":{"id":40986514,"name":"flashcards","full_name":"MistaTwista/flashcards","owner":{"login":"MistaTwista","id":2895309,"avatar_url":"https://avatars.githubusercontent.com/u/2895309?v=3","gravatar_id":"","url":"https://api.github.com/users/MistaTwista","html_url":"https://github.com/MistaTwista","followers_url":"https://api.github.com/users/MistaTwista/followers","following_url":"https://api.github.com/users/MistaTwista/following{/other_user}","gists_url":"https://api.github.com/users/MistaTwista/gists{/gist_id}","starred_url":"https://api.github.com/users/MistaTwista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MistaTwista/subscriptions","organizations_url":"https://api.github.com/users/MistaTwista/orgs","repos_url":"https://api.github.com/users/MistaTwista/repos","events_url":"https://api.github.com/users/MistaTwista/events{/privacy}","received_events_url":"https://api.github.com/users/MistaTwista/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MistaTwista/flashcards","description":"Flash cards apppication","fork":false,"url":"https://api.github.com/repos/MistaTwista/flashcards","forks_url":"https://api.github.com/repos/MistaTwista/flashcards/forks","keys_url":"https://api.github.com/repos/MistaTwista/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MistaTwista/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MistaTwista/flashcards/teams","hooks_url":"https://api.github.com/repos/MistaTwista/flashcards/hooks","issue_events_url":"https://api.github.com/repos/MistaTwista/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/MistaTwista/flashcards/events","assignees_url":"https://api.github.com/repos/MistaTwista/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/MistaTwista/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/MistaTwista/flashcards/tags","blobs_url":"https://api.github.com/repos/MistaTwista/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MistaTwista/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MistaTwista/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/MistaTwista/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MistaTwista/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/MistaTwista/flashcards/languages","stargazers_url":"https://api.github.com/repos/MistaTwista/flashcards/stargazers","contributors_url":"https://api.github.com/repos/MistaTwista/flashcards/contributors","subscribers_url":"https://api.github.com/repos/MistaTwista/flashcards/subscribers","subscription_url":"https://api.github.com/repos/MistaTwista/flashcards/subscription","commits_url":"https://api.github.com/repos/MistaTwista/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/MistaTwista/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/MistaTwista/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/MistaTwista/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/MistaTwista/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/MistaTwista/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MistaTwista/flashcards/merges","archive_url":"https://api.github.com/repos/MistaTwista/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MistaTwista/flashcards/downloads","issues_url":"https://api.github.com/repos/MistaTwista/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/MistaTwista/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/MistaTwista/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/MistaTwista/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MistaTwista/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/MistaTwista/flashcards/releases{/id}","created_at":"2015-08-18T17:22:12Z","updated_at":"2015-08-18T18:23:45Z","pushed_at":"2015-08-25T14:02:50Z","git_url":"git://github.com/MistaTwista/flashcards.git","ssh_url":"git@github.com:MistaTwista/flashcards.git","clone_url":"https://github.com/MistaTwista/flashcards.git","svn_url":"https://github.com/MistaTwista/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MistaTwista:master","ref":"master","sha":"59368ea5c786540550d7d84cfe01ae814c42354d","user":{"login":"MistaTwista","id":2895309,"avatar_url":"https://avatars.githubusercontent.com/u/2895309?v=3","gravatar_id":"","url":"https://api.github.com/users/MistaTwista","html_url":"https://github.com/MistaTwista","followers_url":"https://api.github.com/users/MistaTwista/followers","following_url":"https://api.github.com/users/MistaTwista/following{/other_user}","gists_url":"https://api.github.com/users/MistaTwista/gists{/gist_id}","starred_url":"https://api.github.com/users/MistaTwista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MistaTwista/subscriptions","organizations_url":"https://api.github.com/users/MistaTwista/orgs","repos_url":"https://api.github.com/users/MistaTwista/repos","events_url":"https://api.github.com/users/MistaTwista/events{/privacy}","received_events_url":"https://api.github.com/users/MistaTwista/received_events","type":"User","site_admin":false},"repo":{"id":40986514,"name":"flashcards","full_name":"MistaTwista/flashcards","owner":{"login":"MistaTwista","id":2895309,"avatar_url":"https://avatars.githubusercontent.com/u/2895309?v=3","gravatar_id":"","url":"https://api.github.com/users/MistaTwista","html_url":"https://github.com/MistaTwista","followers_url":"https://api.github.com/users/MistaTwista/followers","following_url":"https://api.github.com/users/MistaTwista/following{/other_user}","gists_url":"https://api.github.com/users/MistaTwista/gists{/gist_id}","starred_url":"https://api.github.com/users/MistaTwista/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MistaTwista/subscriptions","organizations_url":"https://api.github.com/users/MistaTwista/orgs","repos_url":"https://api.github.com/users/MistaTwista/repos","events_url":"https://api.github.com/users/MistaTwista/events{/privacy}","received_events_url":"https://api.github.com/users/MistaTwista/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MistaTwista/flashcards","description":"Flash cards apppication","fork":false,"url":"https://api.github.com/repos/MistaTwista/flashcards","forks_url":"https://api.github.com/repos/MistaTwista/flashcards/forks","keys_url":"https://api.github.com/repos/MistaTwista/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MistaTwista/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MistaTwista/flashcards/teams","hooks_url":"https://api.github.com/repos/MistaTwista/flashcards/hooks","issue_events_url":"https://api.github.com/repos/MistaTwista/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/MistaTwista/flashcards/events","assignees_url":"https://api.github.com/repos/MistaTwista/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/MistaTwista/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/MistaTwista/flashcards/tags","blobs_url":"https://api.github.com/repos/MistaTwista/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MistaTwista/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MistaTwista/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/MistaTwista/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MistaTwista/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/MistaTwista/flashcards/languages","stargazers_url":"https://api.github.com/repos/MistaTwista/flashcards/stargazers","contributors_url":"https://api.github.com/repos/MistaTwista/flashcards/contributors","subscribers_url":"https://api.github.com/repos/MistaTwista/flashcards/subscribers","subscription_url":"https://api.github.com/repos/MistaTwista/flashcards/subscription","commits_url":"https://api.github.com/repos/MistaTwista/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/MistaTwista/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/MistaTwista/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/MistaTwista/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/MistaTwista/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/MistaTwista/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MistaTwista/flashcards/merges","archive_url":"https://api.github.com/repos/MistaTwista/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MistaTwista/flashcards/downloads","issues_url":"https://api.github.com/repos/MistaTwista/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/MistaTwista/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/MistaTwista/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/MistaTwista/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MistaTwista/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/MistaTwista/flashcards/releases{/id}","created_at":"2015-08-18T17:22:12Z","updated_at":"2015-08-18T18:23:45Z","pushed_at":"2015-08-25T14:02:50Z","git_url":"git://github.com/MistaTwista/flashcards.git","ssh_url":"git@github.com:MistaTwista/flashcards.git","clone_url":"https://github.com/MistaTwista/flashcards.git","svn_url":"https://github.com/MistaTwista/flashcards","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6"},"html":{"href":"https://github.com/MistaTwista/flashcards/pull/6"},"issue":{"href":"https://api.github.com/repos/MistaTwista/flashcards/issues/6"},"comments":{"href":"https://api.github.com/repos/MistaTwista/flashcards/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/MistaTwista/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MistaTwista/flashcards/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/MistaTwista/flashcards/statuses/1af102d3d192d3a8936cce448c41b9b71dcc866c"}}}}