{"action":"closed","number":17,"pull_request":{"url":"https://api.github.com/repos/celsodantas/protokoll/pulls/17","id":27651148,"html_url":"https://github.com/celsodantas/protokoll/pull/17","diff_url":"https://github.com/celsodantas/protokoll/pull/17.diff","patch_url":"https://github.com/celsodantas/protokoll/pull/17.patch","issue_url":"https://api.github.com/repos/celsodantas/protokoll/issues/17","number":17,"state":"closed","locked":false,"title":"Model name fix","user":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"body":"@christiannaths @eduard-io @adslyw want to code review this?\r\nShould fix #16 \r\n\r\nI'm just renaming the `model_name` to `counter_model_name` (I'm open for suggestions for a better name).\r\n\r\nWill stop this error:\r\n\r\n```\r\nActiveRecord::DangerousAttributeError: model_name is defined by Active Record. Check to make sure that you don't have an attribute or method with the same name.\r\n```\r\n","created_at":"2015-01-20T03:09:52Z","updated_at":"2015-02-07T02:15:09Z","closed_at":"2015-02-07T02:15:09Z","merged_at":null,"merge_commit_sha":"d98e2ef588e951f226b03608147ba3f13b053a56","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/celsodantas/protokoll/pulls/17/commits","review_comments_url":"https://api.github.com/repos/celsodantas/protokoll/pulls/17/comments","review_comment_url":"https://api.github.com/repos/celsodantas/protokoll/pulls/comments/{number}","comments_url":"https://api.github.com/repos/celsodantas/protokoll/issues/17/comments","statuses_url":"https://api.github.com/repos/celsodantas/protokoll/statuses/30a85ca85720bebe0cf55e28b652f561fb03eeba","head":{"label":"celsodantas:model_name_fx","ref":"model_name_fx","sha":"30a85ca85720bebe0cf55e28b652f561fb03eeba","user":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"repo":{"id":2458125,"name":"protokoll","full_name":"celsodantas/protokoll","owner":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/celsodantas/protokoll","description":"simple Rails gem to create custom autoincrement values to a database column","fork":false,"url":"https://api.github.com/repos/celsodantas/protokoll","forks_url":"https://api.github.com/repos/celsodantas/protokoll/forks","keys_url":"https://api.github.com/repos/celsodantas/protokoll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celsodantas/protokoll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celsodantas/protokoll/teams","hooks_url":"https://api.github.com/repos/celsodantas/protokoll/hooks","issue_events_url":"https://api.github.com/repos/celsodantas/protokoll/issues/events{/number}","events_url":"https://api.github.com/repos/celsodantas/protokoll/events","assignees_url":"https://api.github.com/repos/celsodantas/protokoll/assignees{/user}","branches_url":"https://api.github.com/repos/celsodantas/protokoll/branches{/branch}","tags_url":"https://api.github.com/repos/celsodantas/protokoll/tags","blobs_url":"https://api.github.com/repos/celsodantas/protokoll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celsodantas/protokoll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celsodantas/protokoll/git/refs{/sha}","trees_url":"https://api.github.com/repos/celsodantas/protokoll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celsodantas/protokoll/statuses/{sha}","languages_url":"https://api.github.com/repos/celsodantas/protokoll/languages","stargazers_url":"https://api.github.com/repos/celsodantas/protokoll/stargazers","contributors_url":"https://api.github.com/repos/celsodantas/protokoll/contributors","subscribers_url":"https://api.github.com/repos/celsodantas/protokoll/subscribers","subscription_url":"https://api.github.com/repos/celsodantas/protokoll/subscription","commits_url":"https://api.github.com/repos/celsodantas/protokoll/commits{/sha}","git_commits_url":"https://api.github.com/repos/celsodantas/protokoll/git/commits{/sha}","comments_url":"https://api.github.com/repos/celsodantas/protokoll/comments{/number}","issue_comment_url":"https://api.github.com/repos/celsodantas/protokoll/issues/comments/{number}","contents_url":"https://api.github.com/repos/celsodantas/protokoll/contents/{+path}","compare_url":"https://api.github.com/repos/celsodantas/protokoll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celsodantas/protokoll/merges","archive_url":"https://api.github.com/repos/celsodantas/protokoll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celsodantas/protokoll/downloads","issues_url":"https://api.github.com/repos/celsodantas/protokoll/issues{/number}","pulls_url":"https://api.github.com/repos/celsodantas/protokoll/pulls{/number}","milestones_url":"https://api.github.com/repos/celsodantas/protokoll/milestones{/number}","notifications_url":"https://api.github.com/repos/celsodantas/protokoll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celsodantas/protokoll/labels{/name}","releases_url":"https://api.github.com/repos/celsodantas/protokoll/releases{/id}","created_at":"2011-09-26T04:18:16Z","updated_at":"2015-01-08T16:31:01Z","pushed_at":"2015-01-20T03:05:35Z","git_url":"git://github.com/celsodantas/protokoll.git","ssh_url":"git@github.com:celsodantas/protokoll.git","clone_url":"https://github.com/celsodantas/protokoll.git","svn_url":"https://github.com/celsodantas/protokoll","homepage":null,"size":339,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":13,"default_branch":"master"}},"base":{"label":"celsodantas:master","ref":"master","sha":"727d2db584fad109e8edebdabf50c8f747e2aa7f","user":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"repo":{"id":2458125,"name":"protokoll","full_name":"celsodantas/protokoll","owner":{"login":"celsodantas","id":408219,"avatar_url":"https://avatars.githubusercontent.com/u/408219?v=3","gravatar_id":"","url":"https://api.github.com/users/celsodantas","html_url":"https://github.com/celsodantas","followers_url":"https://api.github.com/users/celsodantas/followers","following_url":"https://api.github.com/users/celsodantas/following{/other_user}","gists_url":"https://api.github.com/users/celsodantas/gists{/gist_id}","starred_url":"https://api.github.com/users/celsodantas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celsodantas/subscriptions","organizations_url":"https://api.github.com/users/celsodantas/orgs","repos_url":"https://api.github.com/users/celsodantas/repos","events_url":"https://api.github.com/users/celsodantas/events{/privacy}","received_events_url":"https://api.github.com/users/celsodantas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/celsodantas/protokoll","description":"simple Rails gem to create custom autoincrement values to a database column","fork":false,"url":"https://api.github.com/repos/celsodantas/protokoll","forks_url":"https://api.github.com/repos/celsodantas/protokoll/forks","keys_url":"https://api.github.com/repos/celsodantas/protokoll/keys{/key_id}","collaborators_url":"https://api.github.com/repos/celsodantas/protokoll/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/celsodantas/protokoll/teams","hooks_url":"https://api.github.com/repos/celsodantas/protokoll/hooks","issue_events_url":"https://api.github.com/repos/celsodantas/protokoll/issues/events{/number}","events_url":"https://api.github.com/repos/celsodantas/protokoll/events","assignees_url":"https://api.github.com/repos/celsodantas/protokoll/assignees{/user}","branches_url":"https://api.github.com/repos/celsodantas/protokoll/branches{/branch}","tags_url":"https://api.github.com/repos/celsodantas/protokoll/tags","blobs_url":"https://api.github.com/repos/celsodantas/protokoll/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/celsodantas/protokoll/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/celsodantas/protokoll/git/refs{/sha}","trees_url":"https://api.github.com/repos/celsodantas/protokoll/git/trees{/sha}","statuses_url":"https://api.github.com/repos/celsodantas/protokoll/statuses/{sha}","languages_url":"https://api.github.com/repos/celsodantas/protokoll/languages","stargazers_url":"https://api.github.com/repos/celsodantas/protokoll/stargazers","contributors_url":"https://api.github.com/repos/celsodantas/protokoll/contributors","subscribers_url":"https://api.github.com/repos/celsodantas/protokoll/subscribers","subscription_url":"https://api.github.com/repos/celsodantas/protokoll/subscription","commits_url":"https://api.github.com/repos/celsodantas/protokoll/commits{/sha}","git_commits_url":"https://api.github.com/repos/celsodantas/protokoll/git/commits{/sha}","comments_url":"https://api.github.com/repos/celsodantas/protokoll/comments{/number}","issue_comment_url":"https://api.github.com/repos/celsodantas/protokoll/issues/comments/{number}","contents_url":"https://api.github.com/repos/celsodantas/protokoll/contents/{+path}","compare_url":"https://api.github.com/repos/celsodantas/protokoll/compare/{base}...{head}","merges_url":"https://api.github.com/repos/celsodantas/protokoll/merges","archive_url":"https://api.github.com/repos/celsodantas/protokoll/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/celsodantas/protokoll/downloads","issues_url":"https://api.github.com/repos/celsodantas/protokoll/issues{/number}","pulls_url":"https://api.github.com/repos/celsodantas/protokoll/pulls{/number}","milestones_url":"https://api.github.com/repos/celsodantas/protokoll/milestones{/number}","notifications_url":"https://api.github.com/repos/celsodantas/protokoll/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/celsodantas/protokoll/labels{/name}","releases_url":"https://api.github.com/repos/celsodantas/protokoll/releases{/id}","created_at":"2011-09-26T04:18:16Z","updated_at":"2015-01-08T16:31:01Z","pushed_at":"2015-01-20T03:05:35Z","git_url":"git://github.com/celsodantas/protokoll.git","ssh_url":"git@github.com:celsodantas/protokoll.git","clone_url":"https://github.com/celsodantas/protokoll.git","svn_url":"https://github.com/celsodantas/protokoll","homepage":null,"size":339,"stargazers_count":13,"watchers_count":13,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":3,"forks":5,"open_issues":3,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/celsodantas/protokoll/pulls/17"},"html":{"href":"https://github.com/celsodantas/protokoll/pull/17"},"issue":{"href":"https://api.github.com/repos/celsodantas/protokoll/issues/17"},"comments":{"href":"https://api.github.com/repos/celsodantas/protokoll/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/celsodantas/protokoll/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/celsodantas/protokoll/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/celsodantas/protokoll/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/celsodantas/protokoll/statuses/30a85ca85720bebe0cf55e28b652f561fb03eeba"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":5,"review_comments":0,"commits":2,"additions":23,"deletions":21,"changed_files":6}}