{"action":"created","comment":{"url":"https://api.github.com/repos/crowdint/bonus_engine/pulls/comments/24600354","id":24600354,"diff_hunk":"@@ -0,0 +1,3 @@\n+object @point","path":"app/views/bonus_engine/api/points/update.rabl","position":1,"original_position":1,"commit_id":"c927e57f6f942e9ed4e15653e2dcda85c6d1f385","original_commit_id":"c927e57f6f942e9ed4e15653e2dcda85c6d1f385","user":{"login":"mumoc","id":399229,"avatar_url":"https://avatars.githubusercontent.com/u/399229?v=3","gravatar_id":"","url":"https://api.github.com/users/mumoc","html_url":"https://github.com/mumoc","followers_url":"https://api.github.com/users/mumoc/followers","following_url":"https://api.github.com/users/mumoc/following{/other_user}","gists_url":"https://api.github.com/users/mumoc/gists{/gist_id}","starred_url":"https://api.github.com/users/mumoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mumoc/subscriptions","organizations_url":"https://api.github.com/users/mumoc/orgs","repos_url":"https://api.github.com/users/mumoc/repos","events_url":"https://api.github.com/users/mumoc/events{/privacy}","received_events_url":"https://api.github.com/users/mumoc/received_events","type":"User","site_admin":false},"body":"you could move all these attributes to another partial ... mm node or something, then just call for it in the create.rabl and update.rabl as both are identical:\r\n\r\n```\r\nobject @point\r\nextends \"bonus_engine/api/points/point\"\r\n```","created_at":"2015-02-12T17:38:27Z","updated_at":"2015-02-12T17:38:27Z","html_url":"https://github.com/crowdint/bonus_engine/pull/2#discussion_r24600354","pull_request_url":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/crowdint/bonus_engine/pulls/comments/24600354"},"html":{"href":"https://github.com/crowdint/bonus_engine/pull/2#discussion_r24600354"},"pull_request":{"href":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2","id":29037361,"html_url":"https://github.com/crowdint/bonus_engine/pull/2","diff_url":"https://github.com/crowdint/bonus_engine/pull/2.diff","patch_url":"https://github.com/crowdint/bonus_engine/pull/2.patch","issue_url":"https://api.github.com/repos/crowdint/bonus_engine/issues/2","number":2,"state":"open","locked":false,"title":"Points balance logic","user":{"login":"ingedmundo","id":1649055,"avatar_url":"https://avatars.githubusercontent.com/u/1649055?v=3","gravatar_id":"","url":"https://api.github.com/users/ingedmundo","html_url":"https://github.com/ingedmundo","followers_url":"https://api.github.com/users/ingedmundo/followers","following_url":"https://api.github.com/users/ingedmundo/following{/other_user}","gists_url":"https://api.github.com/users/ingedmundo/gists{/gist_id}","starred_url":"https://api.github.com/users/ingedmundo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ingedmundo/subscriptions","organizations_url":"https://api.github.com/users/ingedmundo/orgs","repos_url":"https://api.github.com/users/ingedmundo/repos","events_url":"https://api.github.com/users/ingedmundo/events{/privacy}","received_events_url":"https://api.github.com/users/ingedmundo/received_events","type":"User","site_admin":false},"body":"Implements logic for point assignment, user should respect event rules\r\n- User cannot spend more than the assigned budget\r\n- User cannot assign more money than event rule defined maximum\r\n- User should spend his money within designed number of people","created_at":"2015-02-10T19:37:00Z","updated_at":"2015-02-12T17:38:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f7ba2373bfd8958373dc096ab7bf52a28fb7387","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2/commits","review_comments_url":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2/comments","review_comment_url":"https://api.github.com/repos/crowdint/bonus_engine/pulls/comments/{number}","comments_url":"https://api.github.com/repos/crowdint/bonus_engine/issues/2/comments","statuses_url":"https://api.github.com/repos/crowdint/bonus_engine/statuses/c927e57f6f942e9ed4e15653e2dcda85c6d1f385","head":{"label":"crowdint:points_balance_logic","ref":"points_balance_logic","sha":"c927e57f6f942e9ed4e15653e2dcda85c6d1f385","user":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"repo":{"id":30325541,"name":"bonus_engine","full_name":"crowdint/bonus_engine","owner":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdint/bonus_engine","description":"Crowdint bonus engine","fork":true,"url":"https://api.github.com/repos/crowdint/bonus_engine","forks_url":"https://api.github.com/repos/crowdint/bonus_engine/forks","keys_url":"https://api.github.com/repos/crowdint/bonus_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdint/bonus_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdint/bonus_engine/teams","hooks_url":"https://api.github.com/repos/crowdint/bonus_engine/hooks","issue_events_url":"https://api.github.com/repos/crowdint/bonus_engine/issues/events{/number}","events_url":"https://api.github.com/repos/crowdint/bonus_engine/events","assignees_url":"https://api.github.com/repos/crowdint/bonus_engine/assignees{/user}","branches_url":"https://api.github.com/repos/crowdint/bonus_engine/branches{/branch}","tags_url":"https://api.github.com/repos/crowdint/bonus_engine/tags","blobs_url":"https://api.github.com/repos/crowdint/bonus_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdint/bonus_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdint/bonus_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdint/bonus_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdint/bonus_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdint/bonus_engine/languages","stargazers_url":"https://api.github.com/repos/crowdint/bonus_engine/stargazers","contributors_url":"https://api.github.com/repos/crowdint/bonus_engine/contributors","subscribers_url":"https://api.github.com/repos/crowdint/bonus_engine/subscribers","subscription_url":"https://api.github.com/repos/crowdint/bonus_engine/subscription","commits_url":"https://api.github.com/repos/crowdint/bonus_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdint/bonus_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdint/bonus_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdint/bonus_engine/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowdint/bonus_engine/contents/{+path}","compare_url":"https://api.github.com/repos/crowdint/bonus_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdint/bonus_engine/merges","archive_url":"https://api.github.com/repos/crowdint/bonus_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdint/bonus_engine/downloads","issues_url":"https://api.github.com/repos/crowdint/bonus_engine/issues{/number}","pulls_url":"https://api.github.com/repos/crowdint/bonus_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdint/bonus_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdint/bonus_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdint/bonus_engine/labels{/name}","releases_url":"https://api.github.com/repos/crowdint/bonus_engine/releases{/id}","created_at":"2015-02-04T22:46:56Z","updated_at":"2015-02-10T03:59:01Z","pushed_at":"2015-02-12T17:19:47Z","git_url":"git://github.com/crowdint/bonus_engine.git","ssh_url":"git@github.com:crowdint/bonus_engine.git","clone_url":"https://github.com/crowdint/bonus_engine.git","svn_url":"https://github.com/crowdint/bonus_engine","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"crowdint:master","ref":"master","sha":"c8bfbc409ec3c45d7c3b4414b7746164577721b3","user":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"repo":{"id":30325541,"name":"bonus_engine","full_name":"crowdint/bonus_engine","owner":{"login":"crowdint","id":333603,"avatar_url":"https://avatars.githubusercontent.com/u/333603?v=3","gravatar_id":"","url":"https://api.github.com/users/crowdint","html_url":"https://github.com/crowdint","followers_url":"https://api.github.com/users/crowdint/followers","following_url":"https://api.github.com/users/crowdint/following{/other_user}","gists_url":"https://api.github.com/users/crowdint/gists{/gist_id}","starred_url":"https://api.github.com/users/crowdint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crowdint/subscriptions","organizations_url":"https://api.github.com/users/crowdint/orgs","repos_url":"https://api.github.com/users/crowdint/repos","events_url":"https://api.github.com/users/crowdint/events{/privacy}","received_events_url":"https://api.github.com/users/crowdint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crowdint/bonus_engine","description":"Crowdint bonus engine","fork":true,"url":"https://api.github.com/repos/crowdint/bonus_engine","forks_url":"https://api.github.com/repos/crowdint/bonus_engine/forks","keys_url":"https://api.github.com/repos/crowdint/bonus_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crowdint/bonus_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crowdint/bonus_engine/teams","hooks_url":"https://api.github.com/repos/crowdint/bonus_engine/hooks","issue_events_url":"https://api.github.com/repos/crowdint/bonus_engine/issues/events{/number}","events_url":"https://api.github.com/repos/crowdint/bonus_engine/events","assignees_url":"https://api.github.com/repos/crowdint/bonus_engine/assignees{/user}","branches_url":"https://api.github.com/repos/crowdint/bonus_engine/branches{/branch}","tags_url":"https://api.github.com/repos/crowdint/bonus_engine/tags","blobs_url":"https://api.github.com/repos/crowdint/bonus_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crowdint/bonus_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crowdint/bonus_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/crowdint/bonus_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crowdint/bonus_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/crowdint/bonus_engine/languages","stargazers_url":"https://api.github.com/repos/crowdint/bonus_engine/stargazers","contributors_url":"https://api.github.com/repos/crowdint/bonus_engine/contributors","subscribers_url":"https://api.github.com/repos/crowdint/bonus_engine/subscribers","subscription_url":"https://api.github.com/repos/crowdint/bonus_engine/subscription","commits_url":"https://api.github.com/repos/crowdint/bonus_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/crowdint/bonus_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/crowdint/bonus_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/crowdint/bonus_engine/issues/comments/{number}","contents_url":"https://api.github.com/repos/crowdint/bonus_engine/contents/{+path}","compare_url":"https://api.github.com/repos/crowdint/bonus_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crowdint/bonus_engine/merges","archive_url":"https://api.github.com/repos/crowdint/bonus_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crowdint/bonus_engine/downloads","issues_url":"https://api.github.com/repos/crowdint/bonus_engine/issues{/number}","pulls_url":"https://api.github.com/repos/crowdint/bonus_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/crowdint/bonus_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/crowdint/bonus_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crowdint/bonus_engine/labels{/name}","releases_url":"https://api.github.com/repos/crowdint/bonus_engine/releases{/id}","created_at":"2015-02-04T22:46:56Z","updated_at":"2015-02-10T03:59:01Z","pushed_at":"2015-02-12T17:19:47Z","git_url":"git://github.com/crowdint/bonus_engine.git","ssh_url":"git@github.com:crowdint/bonus_engine.git","clone_url":"https://github.com/crowdint/bonus_engine.git","svn_url":"https://github.com/crowdint/bonus_engine","homepage":null,"size":226,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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/crowdint/bonus_engine/pulls/2"},"html":{"href":"https://github.com/crowdint/bonus_engine/pull/2"},"issue":{"href":"https://api.github.com/repos/crowdint/bonus_engine/issues/2"},"comments":{"href":"https://api.github.com/repos/crowdint/bonus_engine/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/crowdint/bonus_engine/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/crowdint/bonus_engine/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/crowdint/bonus_engine/statuses/c927e57f6f942e9ed4e15653e2dcda85c6d1f385"}}}}