{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/framgia_pmp/pulls/comments/62821360","id":62821360,"diff_hunk":"@@ -7,4 +7,13 @@ class Project < ActiveRecord::Base\n   scope :list_by_assignee, ->user do\n     joins(sprints: :assignees).where assignees: {user_id: user.id}\n   end\n+  PROJECT_ATTRIBUTES_PARAMS = [:name, :description, :manager_id, :start_date, :end_date]\n+\n+  validate :check_end_date, on: [:create, :update]\n+  \n+  def check_end_date","path":"app/models/project.rb","position":8,"original_position":8,"commit_id":"c2be8a307fdb36b769890f51601cd9a2d92e830d","original_commit_id":"c2be8a307fdb36b769890f51601cd9a2d92e830d","user":{"login":"dieunb","id":2122175,"avatar_url":"https://avatars.githubusercontent.com/u/2122175?v=3","gravatar_id":"","url":"https://api.github.com/users/dieunb","html_url":"https://github.com/dieunb","followers_url":"https://api.github.com/users/dieunb/followers","following_url":"https://api.github.com/users/dieunb/following{/other_user}","gists_url":"https://api.github.com/users/dieunb/gists{/gist_id}","starred_url":"https://api.github.com/users/dieunb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dieunb/subscriptions","organizations_url":"https://api.github.com/users/dieunb/orgs","repos_url":"https://api.github.com/users/dieunb/repos","events_url":"https://api.github.com/users/dieunb/events{/privacy}","received_events_url":"https://api.github.com/users/dieunb/received_events","type":"User","site_admin":false},"body":"private function","created_at":"2016-05-11T09:58:19Z","updated_at":"2016-05-11T09:58:19Z","html_url":"https://github.com/framgia/framgia_pmp/pull/5#discussion_r62821360","pull_request_url":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/framgia/framgia_pmp/pulls/comments/62821360"},"html":{"href":"https://github.com/framgia/framgia_pmp/pull/5#discussion_r62821360"},"pull_request":{"href":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5","id":69624135,"html_url":"https://github.com/framgia/framgia_pmp/pull/5","diff_url":"https://github.com/framgia/framgia_pmp/pull/5.diff","patch_url":"https://github.com/framgia/framgia_pmp/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/framgia_pmp/issues/5","number":5,"state":"open","locked":false,"title":"create course","user":{"login":"NgocVu1994","id":8828175,"avatar_url":"https://avatars.githubusercontent.com/u/8828175?v=3","gravatar_id":"","url":"https://api.github.com/users/NgocVu1994","html_url":"https://github.com/NgocVu1994","followers_url":"https://api.github.com/users/NgocVu1994/followers","following_url":"https://api.github.com/users/NgocVu1994/following{/other_user}","gists_url":"https://api.github.com/users/NgocVu1994/gists{/gist_id}","starred_url":"https://api.github.com/users/NgocVu1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgocVu1994/subscriptions","organizations_url":"https://api.github.com/users/NgocVu1994/orgs","repos_url":"https://api.github.com/users/NgocVu1994/repos","events_url":"https://api.github.com/users/NgocVu1994/events{/privacy}","received_events_url":"https://api.github.com/users/NgocVu1994/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-11T07:06:56Z","updated_at":"2016-05-11T09:58:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ffac07d3187ea64889cd4385018279766955976","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/framgia_pmp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/framgia_pmp/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/framgia_pmp/statuses/c2be8a307fdb36b769890f51601cd9a2d92e830d","head":{"label":"NgocVu1994:create-course","ref":"create-course","sha":"c2be8a307fdb36b769890f51601cd9a2d92e830d","user":{"login":"NgocVu1994","id":8828175,"avatar_url":"https://avatars.githubusercontent.com/u/8828175?v=3","gravatar_id":"","url":"https://api.github.com/users/NgocVu1994","html_url":"https://github.com/NgocVu1994","followers_url":"https://api.github.com/users/NgocVu1994/followers","following_url":"https://api.github.com/users/NgocVu1994/following{/other_user}","gists_url":"https://api.github.com/users/NgocVu1994/gists{/gist_id}","starred_url":"https://api.github.com/users/NgocVu1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgocVu1994/subscriptions","organizations_url":"https://api.github.com/users/NgocVu1994/orgs","repos_url":"https://api.github.com/users/NgocVu1994/repos","events_url":"https://api.github.com/users/NgocVu1994/events{/privacy}","received_events_url":"https://api.github.com/users/NgocVu1994/received_events","type":"User","site_admin":false},"repo":{"id":58439586,"name":"framgia_pmp","full_name":"NgocVu1994/framgia_pmp","owner":{"login":"NgocVu1994","id":8828175,"avatar_url":"https://avatars.githubusercontent.com/u/8828175?v=3","gravatar_id":"","url":"https://api.github.com/users/NgocVu1994","html_url":"https://github.com/NgocVu1994","followers_url":"https://api.github.com/users/NgocVu1994/followers","following_url":"https://api.github.com/users/NgocVu1994/following{/other_user}","gists_url":"https://api.github.com/users/NgocVu1994/gists{/gist_id}","starred_url":"https://api.github.com/users/NgocVu1994/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NgocVu1994/subscriptions","organizations_url":"https://api.github.com/users/NgocVu1994/orgs","repos_url":"https://api.github.com/users/NgocVu1994/repos","events_url":"https://api.github.com/users/NgocVu1994/events{/privacy}","received_events_url":"https://api.github.com/users/NgocVu1994/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NgocVu1994/framgia_pmp","description":"Framgia PMP","fork":true,"url":"https://api.github.com/repos/NgocVu1994/framgia_pmp","forks_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/forks","keys_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/teams","hooks_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/hooks","issue_events_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/issues/events{/number}","events_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/events","assignees_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/assignees{/user}","branches_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/branches{/branch}","tags_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/tags","blobs_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/git/refs{/sha}","trees_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/statuses/{sha}","languages_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/languages","stargazers_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/stargazers","contributors_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/contributors","subscribers_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/subscribers","subscription_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/subscription","commits_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/commits{/sha}","git_commits_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/git/commits{/sha}","comments_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/comments{/number}","issue_comment_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/issues/comments{/number}","contents_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/contents/{+path}","compare_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/merges","archive_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/downloads","issues_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/issues{/number}","pulls_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/pulls{/number}","milestones_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/milestones{/number}","notifications_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/labels{/name}","releases_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/releases{/id}","deployments_url":"https://api.github.com/repos/NgocVu1994/framgia_pmp/deployments","created_at":"2016-05-10T07:33:15Z","updated_at":"2016-05-10T07:26:36Z","pushed_at":"2016-05-11T09:57:22Z","git_url":"git://github.com/NgocVu1994/framgia_pmp.git","ssh_url":"git@github.com:NgocVu1994/framgia_pmp.git","clone_url":"https://github.com/NgocVu1994/framgia_pmp.git","svn_url":"https://github.com/NgocVu1994/framgia_pmp","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"50c775533267c79314cf83c8ebf80aaf588b3a22","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":58439142,"name":"framgia_pmp","full_name":"framgia/framgia_pmp","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/framgia_pmp","description":"Framgia PMP","fork":false,"url":"https://api.github.com/repos/framgia/framgia_pmp","forks_url":"https://api.github.com/repos/framgia/framgia_pmp/forks","keys_url":"https://api.github.com/repos/framgia/framgia_pmp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/framgia_pmp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/framgia_pmp/teams","hooks_url":"https://api.github.com/repos/framgia/framgia_pmp/hooks","issue_events_url":"https://api.github.com/repos/framgia/framgia_pmp/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/framgia_pmp/events","assignees_url":"https://api.github.com/repos/framgia/framgia_pmp/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/framgia_pmp/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/framgia_pmp/tags","blobs_url":"https://api.github.com/repos/framgia/framgia_pmp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/framgia_pmp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/framgia_pmp/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/framgia_pmp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/framgia_pmp/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/framgia_pmp/languages","stargazers_url":"https://api.github.com/repos/framgia/framgia_pmp/stargazers","contributors_url":"https://api.github.com/repos/framgia/framgia_pmp/contributors","subscribers_url":"https://api.github.com/repos/framgia/framgia_pmp/subscribers","subscription_url":"https://api.github.com/repos/framgia/framgia_pmp/subscription","commits_url":"https://api.github.com/repos/framgia/framgia_pmp/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/framgia_pmp/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/framgia_pmp/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/framgia_pmp/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/framgia_pmp/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/framgia_pmp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/framgia_pmp/merges","archive_url":"https://api.github.com/repos/framgia/framgia_pmp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/framgia_pmp/downloads","issues_url":"https://api.github.com/repos/framgia/framgia_pmp/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/framgia_pmp/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/framgia_pmp/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/framgia_pmp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/framgia_pmp/labels{/name}","releases_url":"https://api.github.com/repos/framgia/framgia_pmp/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/framgia_pmp/deployments","created_at":"2016-05-10T07:26:36Z","updated_at":"2016-05-10T07:26:36Z","pushed_at":"2016-05-11T09:57:23Z","git_url":"git://github.com/framgia/framgia_pmp.git","ssh_url":"git@github.com:framgia/framgia_pmp.git","clone_url":"https://github.com/framgia/framgia_pmp.git","svn_url":"https://github.com/framgia/framgia_pmp","homepage":null,"size":652,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5"},"html":{"href":"https://github.com/framgia/framgia_pmp/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/framgia_pmp/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/framgia_pmp/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/framgia_pmp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/framgia_pmp/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/framgia_pmp/statuses/c2be8a307fdb36b769890f51601cd9a2d92e830d"}}}}