{"action":"created","comment":{"url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/comments/41708085","id":41708085,"diff_hunk":"@@ -1,12 +1,24 @@\n class Card < ActiveRecord::Base\n-  validates :review_date, :original_text,\n-            :translated_text, :transcription, presence: true\n+  before_validation :ensure_review_date_has_a_value\n+  validates :original_text, :translated_text, :transcription, presence: true\n   validates :original_text, uniqueness: true\n-  validate :original_text_equal_to_translated_text\n+  validate  :original_text_equal_to_translated_text","path":"app/models/card.rb","position":8,"original_position":8,"commit_id":"f8a786680c7e1a343edff442f1d83899ba2982ed","original_commit_id":"f8a786680c7e1a343edff442f1d83899ba2982ed","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":"Put one space between the method name and the first argument.","created_at":"2015-10-11T09:38:25Z","updated_at":"2015-10-11T09:38:25Z","html_url":"https://github.com/RomanKrasavtsev/flashcards/pull/5#discussion_r41708085","pull_request_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/comments/41708085"},"html":{"href":"https://github.com/RomanKrasavtsev/flashcards/pull/5#discussion_r41708085"},"pull_request":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5","id":47363511,"html_url":"https://github.com/RomanKrasavtsev/flashcards/pull/5","diff_url":"https://github.com/RomanKrasavtsev/flashcards/pull/5.diff","patch_url":"https://github.com/RomanKrasavtsev/flashcards/pull/5.patch","issue_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/5","number":5,"state":"open","locked":false,"title":"fifth-task","user":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-11T09:38:23Z","updated_at":"2015-10-11T09:38:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c8262e6ed112e26a52330c57212b44b1eb78bb38","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5/commits","review_comments_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5/comments","review_comment_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/5/comments","statuses_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/statuses/f8a786680c7e1a343edff442f1d83899ba2982ed","head":{"label":"RomanKrasavtsev:fifth-task","ref":"fifth-task","sha":"f8a786680c7e1a343edff442f1d83899ba2982ed","user":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"repo":{"id":42648096,"name":"flashcards","full_name":"RomanKrasavtsev/flashcards","owner":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RomanKrasavtsev/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/RomanKrasavtsev/flashcards","forks_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/forks","keys_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/teams","hooks_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/hooks","issue_events_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/events","assignees_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/tags","blobs_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/languages","stargazers_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/stargazers","contributors_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/contributors","subscribers_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/subscribers","subscription_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/subscription","commits_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/merges","archive_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/downloads","issues_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/releases{/id}","created_at":"2015-09-17T09:44:47Z","updated_at":"2015-09-18T07:56:02Z","pushed_at":"2015-10-11T09:38:23Z","git_url":"git://github.com/RomanKrasavtsev/flashcards.git","ssh_url":"git@github.com:RomanKrasavtsev/flashcards.git","clone_url":"https://github.com/RomanKrasavtsev/flashcards.git","svn_url":"https://github.com/RomanKrasavtsev/flashcards","homepage":null,"size":528,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"RomanKrasavtsev:master","ref":"master","sha":"3a5fde730354839d9212f870c91b84d114f5f02b","user":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"repo":{"id":42648096,"name":"flashcards","full_name":"RomanKrasavtsev/flashcards","owner":{"login":"RomanKrasavtsev","id":12496512,"avatar_url":"https://avatars.githubusercontent.com/u/12496512?v=3","gravatar_id":"","url":"https://api.github.com/users/RomanKrasavtsev","html_url":"https://github.com/RomanKrasavtsev","followers_url":"https://api.github.com/users/RomanKrasavtsev/followers","following_url":"https://api.github.com/users/RomanKrasavtsev/following{/other_user}","gists_url":"https://api.github.com/users/RomanKrasavtsev/gists{/gist_id}","starred_url":"https://api.github.com/users/RomanKrasavtsev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RomanKrasavtsev/subscriptions","organizations_url":"https://api.github.com/users/RomanKrasavtsev/orgs","repos_url":"https://api.github.com/users/RomanKrasavtsev/repos","events_url":"https://api.github.com/users/RomanKrasavtsev/events{/privacy}","received_events_url":"https://api.github.com/users/RomanKrasavtsev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RomanKrasavtsev/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/RomanKrasavtsev/flashcards","forks_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/forks","keys_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/teams","hooks_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/hooks","issue_events_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/events","assignees_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/tags","blobs_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/languages","stargazers_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/stargazers","contributors_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/contributors","subscribers_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/subscribers","subscription_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/subscription","commits_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/merges","archive_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/downloads","issues_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/RomanKrasavtsev/flashcards/releases{/id}","created_at":"2015-09-17T09:44:47Z","updated_at":"2015-09-18T07:56:02Z","pushed_at":"2015-10-11T09:38:23Z","git_url":"git://github.com/RomanKrasavtsev/flashcards.git","ssh_url":"git@github.com:RomanKrasavtsev/flashcards.git","clone_url":"https://github.com/RomanKrasavtsev/flashcards.git","svn_url":"https://github.com/RomanKrasavtsev/flashcards","homepage":null,"size":528,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/RomanKrasavtsev/flashcards/pulls/5"},"html":{"href":"https://github.com/RomanKrasavtsev/flashcards/pull/5"},"issue":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/5"},"comments":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/RomanKrasavtsev/flashcards/statuses/f8a786680c7e1a343edff442f1d83899ba2982ed"}}}}