{"action":"created","comment":{"url":"https://api.github.com/repos/ovkachanov/flashcards/pulls/comments/36031604","id":36031604,"diff_hunk":"@@ -1,2 +1,21 @@\n class Card < ActiveRecord::Base\n-end\n+\n+  validates :original_text, :translated_text, :review_date, presence: true\n+  validate :words_equal?\n+  before_validation :add_days_review_date\n+  \n+  def add_days_review_date","path":"app/models/card.rb","position":8,"original_position":8,"commit_id":"f5b3972890c54e8ab6b46d59ce8d96cbb8420228","original_commit_id":"f5b3972890c54e8ab6b46d59ce8d96cbb8420228","user":{"login":"mkdev-mentor-1","id":11962702,"avatar_url":"https://avatars.githubusercontent.com/u/11962702?v=3","gravatar_id":"","url":"https://api.github.com/users/mkdev-mentor-1","html_url":"https://github.com/mkdev-mentor-1","followers_url":"https://api.github.com/users/mkdev-mentor-1/followers","following_url":"https://api.github.com/users/mkdev-mentor-1/following{/other_user}","gists_url":"https://api.github.com/users/mkdev-mentor-1/gists{/gist_id}","starred_url":"https://api.github.com/users/mkdev-mentor-1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkdev-mentor-1/subscriptions","organizations_url":"https://api.github.com/users/mkdev-mentor-1/orgs","repos_url":"https://api.github.com/users/mkdev-mentor-1/repos","events_url":"https://api.github.com/users/mkdev-mentor-1/events{/privacy}","received_events_url":"https://api.github.com/users/mkdev-mentor-1/received_events","type":"User","site_admin":false},"body":"set_default_review_date","created_at":"2015-08-01T07:46:24Z","updated_at":"2015-08-01T07:46:24Z","html_url":"https://github.com/ovkachanov/flashcards/pull/3#discussion_r36031604","pull_request_url":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ovkachanov/flashcards/pulls/comments/36031604"},"html":{"href":"https://github.com/ovkachanov/flashcards/pull/3#discussion_r36031604"},"pull_request":{"href":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3","id":41362573,"html_url":"https://github.com/ovkachanov/flashcards/pull/3","diff_url":"https://github.com/ovkachanov/flashcards/pull/3.diff","patch_url":"https://github.com/ovkachanov/flashcards/pull/3.patch","issue_url":"https://api.github.com/repos/ovkachanov/flashcards/issues/3","number":3,"state":"open","locked":false,"title":"Third task","user":{"login":"ovkachanov","id":13448041,"avatar_url":"https://avatars.githubusercontent.com/u/13448041?v=3","gravatar_id":"","url":"https://api.github.com/users/ovkachanov","html_url":"https://github.com/ovkachanov","followers_url":"https://api.github.com/users/ovkachanov/followers","following_url":"https://api.github.com/users/ovkachanov/following{/other_user}","gists_url":"https://api.github.com/users/ovkachanov/gists{/gist_id}","starred_url":"https://api.github.com/users/ovkachanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovkachanov/subscriptions","organizations_url":"https://api.github.com/users/ovkachanov/orgs","repos_url":"https://api.github.com/users/ovkachanov/repos","events_url":"https://api.github.com/users/ovkachanov/events{/privacy}","received_events_url":"https://api.github.com/users/ovkachanov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-31T17:36:04Z","updated_at":"2015-08-01T07:46:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f868eb6422f118f072dad905b0a5ec48d691066","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ovkachanov/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ovkachanov/flashcards/issues/3/comments","statuses_url":"https://api.github.com/repos/ovkachanov/flashcards/statuses/f5b3972890c54e8ab6b46d59ce8d96cbb8420228","head":{"label":"ovkachanov:third-task","ref":"third-task","sha":"f5b3972890c54e8ab6b46d59ce8d96cbb8420228","user":{"login":"ovkachanov","id":13448041,"avatar_url":"https://avatars.githubusercontent.com/u/13448041?v=3","gravatar_id":"","url":"https://api.github.com/users/ovkachanov","html_url":"https://github.com/ovkachanov","followers_url":"https://api.github.com/users/ovkachanov/followers","following_url":"https://api.github.com/users/ovkachanov/following{/other_user}","gists_url":"https://api.github.com/users/ovkachanov/gists{/gist_id}","starred_url":"https://api.github.com/users/ovkachanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovkachanov/subscriptions","organizations_url":"https://api.github.com/users/ovkachanov/orgs","repos_url":"https://api.github.com/users/ovkachanov/repos","events_url":"https://api.github.com/users/ovkachanov/events{/privacy}","received_events_url":"https://api.github.com/users/ovkachanov/received_events","type":"User","site_admin":false},"repo":{"id":39581891,"name":"flashcards","full_name":"ovkachanov/flashcards","owner":{"login":"ovkachanov","id":13448041,"avatar_url":"https://avatars.githubusercontent.com/u/13448041?v=3","gravatar_id":"","url":"https://api.github.com/users/ovkachanov","html_url":"https://github.com/ovkachanov","followers_url":"https://api.github.com/users/ovkachanov/followers","following_url":"https://api.github.com/users/ovkachanov/following{/other_user}","gists_url":"https://api.github.com/users/ovkachanov/gists{/gist_id}","starred_url":"https://api.github.com/users/ovkachanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovkachanov/subscriptions","organizations_url":"https://api.github.com/users/ovkachanov/orgs","repos_url":"https://api.github.com/users/ovkachanov/repos","events_url":"https://api.github.com/users/ovkachanov/events{/privacy}","received_events_url":"https://api.github.com/users/ovkachanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ovkachanov/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ovkachanov/flashcards","forks_url":"https://api.github.com/repos/ovkachanov/flashcards/forks","keys_url":"https://api.github.com/repos/ovkachanov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovkachanov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovkachanov/flashcards/teams","hooks_url":"https://api.github.com/repos/ovkachanov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ovkachanov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ovkachanov/flashcards/events","assignees_url":"https://api.github.com/repos/ovkachanov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ovkachanov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ovkachanov/flashcards/tags","blobs_url":"https://api.github.com/repos/ovkachanov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovkachanov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovkachanov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovkachanov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovkachanov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ovkachanov/flashcards/languages","stargazers_url":"https://api.github.com/repos/ovkachanov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ovkachanov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ovkachanov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ovkachanov/flashcards/subscription","commits_url":"https://api.github.com/repos/ovkachanov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovkachanov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovkachanov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovkachanov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovkachanov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ovkachanov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovkachanov/flashcards/merges","archive_url":"https://api.github.com/repos/ovkachanov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovkachanov/flashcards/downloads","issues_url":"https://api.github.com/repos/ovkachanov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ovkachanov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ovkachanov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ovkachanov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovkachanov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ovkachanov/flashcards/releases{/id}","created_at":"2015-07-23T17:40:54Z","updated_at":"2015-07-25T16:29:23Z","pushed_at":"2015-07-31T17:36:04Z","git_url":"git://github.com/ovkachanov/flashcards.git","ssh_url":"git@github.com:ovkachanov/flashcards.git","clone_url":"https://github.com/ovkachanov/flashcards.git","svn_url":"https://github.com/ovkachanov/flashcards","homepage":null,"size":184,"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":"ovkachanov:master","ref":"master","sha":"3319b1022fc51103a5fee13bcdb5c7a54bfa8276","user":{"login":"ovkachanov","id":13448041,"avatar_url":"https://avatars.githubusercontent.com/u/13448041?v=3","gravatar_id":"","url":"https://api.github.com/users/ovkachanov","html_url":"https://github.com/ovkachanov","followers_url":"https://api.github.com/users/ovkachanov/followers","following_url":"https://api.github.com/users/ovkachanov/following{/other_user}","gists_url":"https://api.github.com/users/ovkachanov/gists{/gist_id}","starred_url":"https://api.github.com/users/ovkachanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovkachanov/subscriptions","organizations_url":"https://api.github.com/users/ovkachanov/orgs","repos_url":"https://api.github.com/users/ovkachanov/repos","events_url":"https://api.github.com/users/ovkachanov/events{/privacy}","received_events_url":"https://api.github.com/users/ovkachanov/received_events","type":"User","site_admin":false},"repo":{"id":39581891,"name":"flashcards","full_name":"ovkachanov/flashcards","owner":{"login":"ovkachanov","id":13448041,"avatar_url":"https://avatars.githubusercontent.com/u/13448041?v=3","gravatar_id":"","url":"https://api.github.com/users/ovkachanov","html_url":"https://github.com/ovkachanov","followers_url":"https://api.github.com/users/ovkachanov/followers","following_url":"https://api.github.com/users/ovkachanov/following{/other_user}","gists_url":"https://api.github.com/users/ovkachanov/gists{/gist_id}","starred_url":"https://api.github.com/users/ovkachanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ovkachanov/subscriptions","organizations_url":"https://api.github.com/users/ovkachanov/orgs","repos_url":"https://api.github.com/users/ovkachanov/repos","events_url":"https://api.github.com/users/ovkachanov/events{/privacy}","received_events_url":"https://api.github.com/users/ovkachanov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ovkachanov/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/ovkachanov/flashcards","forks_url":"https://api.github.com/repos/ovkachanov/flashcards/forks","keys_url":"https://api.github.com/repos/ovkachanov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ovkachanov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ovkachanov/flashcards/teams","hooks_url":"https://api.github.com/repos/ovkachanov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/ovkachanov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/ovkachanov/flashcards/events","assignees_url":"https://api.github.com/repos/ovkachanov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/ovkachanov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/ovkachanov/flashcards/tags","blobs_url":"https://api.github.com/repos/ovkachanov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ovkachanov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ovkachanov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/ovkachanov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ovkachanov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/ovkachanov/flashcards/languages","stargazers_url":"https://api.github.com/repos/ovkachanov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/ovkachanov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/ovkachanov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/ovkachanov/flashcards/subscription","commits_url":"https://api.github.com/repos/ovkachanov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/ovkachanov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/ovkachanov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/ovkachanov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/ovkachanov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/ovkachanov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ovkachanov/flashcards/merges","archive_url":"https://api.github.com/repos/ovkachanov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ovkachanov/flashcards/downloads","issues_url":"https://api.github.com/repos/ovkachanov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/ovkachanov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/ovkachanov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/ovkachanov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ovkachanov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/ovkachanov/flashcards/releases{/id}","created_at":"2015-07-23T17:40:54Z","updated_at":"2015-07-25T16:29:23Z","pushed_at":"2015-07-31T17:36:04Z","git_url":"git://github.com/ovkachanov/flashcards.git","ssh_url":"git@github.com:ovkachanov/flashcards.git","clone_url":"https://github.com/ovkachanov/flashcards.git","svn_url":"https://github.com/ovkachanov/flashcards","homepage":null,"size":184,"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/ovkachanov/flashcards/pulls/3"},"html":{"href":"https://github.com/ovkachanov/flashcards/pull/3"},"issue":{"href":"https://api.github.com/repos/ovkachanov/flashcards/issues/3"},"comments":{"href":"https://api.github.com/repos/ovkachanov/flashcards/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ovkachanov/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ovkachanov/flashcards/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ovkachanov/flashcards/statuses/f5b3972890c54e8ab6b46d59ce8d96cbb8420228"}}}}