{"action":"created","comment":{"url":"https://api.github.com/repos/maxim-popov/flashcards/pulls/comments/43872016","id":43872016,"diff_hunk":"@@ -7,6 +7,12 @@ def validate(record)\n end\n \n class Card < ActiveRecord::Base\n-\tvalidates :original_text,:translated_text, presence: true\n-\tvalidates_with CompareValidator\n+  before_validation :define_review_date\n+  validates :original_text,:translated_text, presence: true\n+  validates_with CompareValidator\n+\n+  protected","path":"app/models/card.rb","position":10,"original_position":10,"commit_id":"c53b13bc88ca881a95b7afa70e18d32326821603","original_commit_id":"c53b13bc88ca881a95b7afa70e18d32326821603","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":"Keep a blank line before and after `protected`.","created_at":"2015-11-04T11:57:37Z","updated_at":"2015-11-04T11:57:37Z","html_url":"https://github.com/maxim-popov/flashcards/pull/4#discussion_r43872016","pull_request_url":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/maxim-popov/flashcards/pulls/comments/43872016"},"html":{"href":"https://github.com/maxim-popov/flashcards/pull/4#discussion_r43872016"},"pull_request":{"href":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4","id":49604329,"html_url":"https://github.com/maxim-popov/flashcards/pull/4","diff_url":"https://github.com/maxim-popov/flashcards/pull/4.diff","patch_url":"https://github.com/maxim-popov/flashcards/pull/4.patch","issue_url":"https://api.github.com/repos/maxim-popov/flashcards/issues/4","number":4,"state":"open","locked":false,"title":"added seeds.rb","user":{"login":"maxim-popov","id":8223689,"avatar_url":"https://avatars.githubusercontent.com/u/8223689?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim-popov","html_url":"https://github.com/maxim-popov","followers_url":"https://api.github.com/users/maxim-popov/followers","following_url":"https://api.github.com/users/maxim-popov/following{/other_user}","gists_url":"https://api.github.com/users/maxim-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim-popov/subscriptions","organizations_url":"https://api.github.com/users/maxim-popov/orgs","repos_url":"https://api.github.com/users/maxim-popov/repos","events_url":"https://api.github.com/users/maxim-popov/events{/privacy}","received_events_url":"https://api.github.com/users/maxim-popov/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-03T20:03:10Z","updated_at":"2015-11-04T11:57:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da5dc3439d765f7236e22958723338a9cf5ab5fa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4/commits","review_comments_url":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4/comments","review_comment_url":"https://api.github.com/repos/maxim-popov/flashcards/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maxim-popov/flashcards/issues/4/comments","statuses_url":"https://api.github.com/repos/maxim-popov/flashcards/statuses/c53b13bc88ca881a95b7afa70e18d32326821603","head":{"label":"maxim-popov:fourth_task","ref":"fourth_task","sha":"c53b13bc88ca881a95b7afa70e18d32326821603","user":{"login":"maxim-popov","id":8223689,"avatar_url":"https://avatars.githubusercontent.com/u/8223689?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim-popov","html_url":"https://github.com/maxim-popov","followers_url":"https://api.github.com/users/maxim-popov/followers","following_url":"https://api.github.com/users/maxim-popov/following{/other_user}","gists_url":"https://api.github.com/users/maxim-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim-popov/subscriptions","organizations_url":"https://api.github.com/users/maxim-popov/orgs","repos_url":"https://api.github.com/users/maxim-popov/repos","events_url":"https://api.github.com/users/maxim-popov/events{/privacy}","received_events_url":"https://api.github.com/users/maxim-popov/received_events","type":"User","site_admin":false},"repo":{"id":43264125,"name":"flashcards","full_name":"maxim-popov/flashcards","owner":{"login":"maxim-popov","id":8223689,"avatar_url":"https://avatars.githubusercontent.com/u/8223689?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim-popov","html_url":"https://github.com/maxim-popov","followers_url":"https://api.github.com/users/maxim-popov/followers","following_url":"https://api.github.com/users/maxim-popov/following{/other_user}","gists_url":"https://api.github.com/users/maxim-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim-popov/subscriptions","organizations_url":"https://api.github.com/users/maxim-popov/orgs","repos_url":"https://api.github.com/users/maxim-popov/repos","events_url":"https://api.github.com/users/maxim-popov/events{/privacy}","received_events_url":"https://api.github.com/users/maxim-popov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxim-popov/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/maxim-popov/flashcards","forks_url":"https://api.github.com/repos/maxim-popov/flashcards/forks","keys_url":"https://api.github.com/repos/maxim-popov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxim-popov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxim-popov/flashcards/teams","hooks_url":"https://api.github.com/repos/maxim-popov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/maxim-popov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/maxim-popov/flashcards/events","assignees_url":"https://api.github.com/repos/maxim-popov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/maxim-popov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/maxim-popov/flashcards/tags","blobs_url":"https://api.github.com/repos/maxim-popov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxim-popov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxim-popov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxim-popov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxim-popov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/maxim-popov/flashcards/languages","stargazers_url":"https://api.github.com/repos/maxim-popov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/maxim-popov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/maxim-popov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/maxim-popov/flashcards/subscription","commits_url":"https://api.github.com/repos/maxim-popov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxim-popov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxim-popov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxim-popov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxim-popov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/maxim-popov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxim-popov/flashcards/merges","archive_url":"https://api.github.com/repos/maxim-popov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxim-popov/flashcards/downloads","issues_url":"https://api.github.com/repos/maxim-popov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/maxim-popov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/maxim-popov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/maxim-popov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxim-popov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/maxim-popov/flashcards/releases{/id}","created_at":"2015-09-27T20:41:21Z","updated_at":"2015-09-30T19:28:54Z","pushed_at":"2015-11-04T11:57:25Z","git_url":"git://github.com/maxim-popov/flashcards.git","ssh_url":"git@github.com:maxim-popov/flashcards.git","clone_url":"https://github.com/maxim-popov/flashcards.git","svn_url":"https://github.com/maxim-popov/flashcards","homepage":null,"size":256,"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":"maxim-popov:master","ref":"master","sha":"f78ab0e03ea640efb987cfe487c9ed824c6de251","user":{"login":"maxim-popov","id":8223689,"avatar_url":"https://avatars.githubusercontent.com/u/8223689?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim-popov","html_url":"https://github.com/maxim-popov","followers_url":"https://api.github.com/users/maxim-popov/followers","following_url":"https://api.github.com/users/maxim-popov/following{/other_user}","gists_url":"https://api.github.com/users/maxim-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim-popov/subscriptions","organizations_url":"https://api.github.com/users/maxim-popov/orgs","repos_url":"https://api.github.com/users/maxim-popov/repos","events_url":"https://api.github.com/users/maxim-popov/events{/privacy}","received_events_url":"https://api.github.com/users/maxim-popov/received_events","type":"User","site_admin":false},"repo":{"id":43264125,"name":"flashcards","full_name":"maxim-popov/flashcards","owner":{"login":"maxim-popov","id":8223689,"avatar_url":"https://avatars.githubusercontent.com/u/8223689?v=3","gravatar_id":"","url":"https://api.github.com/users/maxim-popov","html_url":"https://github.com/maxim-popov","followers_url":"https://api.github.com/users/maxim-popov/followers","following_url":"https://api.github.com/users/maxim-popov/following{/other_user}","gists_url":"https://api.github.com/users/maxim-popov/gists{/gist_id}","starred_url":"https://api.github.com/users/maxim-popov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maxim-popov/subscriptions","organizations_url":"https://api.github.com/users/maxim-popov/orgs","repos_url":"https://api.github.com/users/maxim-popov/repos","events_url":"https://api.github.com/users/maxim-popov/events{/privacy}","received_events_url":"https://api.github.com/users/maxim-popov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/maxim-popov/flashcards","description":"","fork":false,"url":"https://api.github.com/repos/maxim-popov/flashcards","forks_url":"https://api.github.com/repos/maxim-popov/flashcards/forks","keys_url":"https://api.github.com/repos/maxim-popov/flashcards/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maxim-popov/flashcards/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maxim-popov/flashcards/teams","hooks_url":"https://api.github.com/repos/maxim-popov/flashcards/hooks","issue_events_url":"https://api.github.com/repos/maxim-popov/flashcards/issues/events{/number}","events_url":"https://api.github.com/repos/maxim-popov/flashcards/events","assignees_url":"https://api.github.com/repos/maxim-popov/flashcards/assignees{/user}","branches_url":"https://api.github.com/repos/maxim-popov/flashcards/branches{/branch}","tags_url":"https://api.github.com/repos/maxim-popov/flashcards/tags","blobs_url":"https://api.github.com/repos/maxim-popov/flashcards/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maxim-popov/flashcards/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maxim-popov/flashcards/git/refs{/sha}","trees_url":"https://api.github.com/repos/maxim-popov/flashcards/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maxim-popov/flashcards/statuses/{sha}","languages_url":"https://api.github.com/repos/maxim-popov/flashcards/languages","stargazers_url":"https://api.github.com/repos/maxim-popov/flashcards/stargazers","contributors_url":"https://api.github.com/repos/maxim-popov/flashcards/contributors","subscribers_url":"https://api.github.com/repos/maxim-popov/flashcards/subscribers","subscription_url":"https://api.github.com/repos/maxim-popov/flashcards/subscription","commits_url":"https://api.github.com/repos/maxim-popov/flashcards/commits{/sha}","git_commits_url":"https://api.github.com/repos/maxim-popov/flashcards/git/commits{/sha}","comments_url":"https://api.github.com/repos/maxim-popov/flashcards/comments{/number}","issue_comment_url":"https://api.github.com/repos/maxim-popov/flashcards/issues/comments{/number}","contents_url":"https://api.github.com/repos/maxim-popov/flashcards/contents/{+path}","compare_url":"https://api.github.com/repos/maxim-popov/flashcards/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maxim-popov/flashcards/merges","archive_url":"https://api.github.com/repos/maxim-popov/flashcards/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maxim-popov/flashcards/downloads","issues_url":"https://api.github.com/repos/maxim-popov/flashcards/issues{/number}","pulls_url":"https://api.github.com/repos/maxim-popov/flashcards/pulls{/number}","milestones_url":"https://api.github.com/repos/maxim-popov/flashcards/milestones{/number}","notifications_url":"https://api.github.com/repos/maxim-popov/flashcards/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maxim-popov/flashcards/labels{/name}","releases_url":"https://api.github.com/repos/maxim-popov/flashcards/releases{/id}","created_at":"2015-09-27T20:41:21Z","updated_at":"2015-09-30T19:28:54Z","pushed_at":"2015-11-04T11:57:25Z","git_url":"git://github.com/maxim-popov/flashcards.git","ssh_url":"git@github.com:maxim-popov/flashcards.git","clone_url":"https://github.com/maxim-popov/flashcards.git","svn_url":"https://github.com/maxim-popov/flashcards","homepage":null,"size":256,"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/maxim-popov/flashcards/pulls/4"},"html":{"href":"https://github.com/maxim-popov/flashcards/pull/4"},"issue":{"href":"https://api.github.com/repos/maxim-popov/flashcards/issues/4"},"comments":{"href":"https://api.github.com/repos/maxim-popov/flashcards/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/maxim-popov/flashcards/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maxim-popov/flashcards/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/maxim-popov/flashcards/statuses/c53b13bc88ca881a95b7afa70e18d32326821603"}}}}