{"action":"created","comment":{"url":"https://api.github.com/repos/olimart/formtastic/pulls/comments/24135499","id":24135499,"diff_hunk":"@@ -75,17 +75,17 @@ def avatar_url\n \n \tprivate\n \n-\t  def check_raw_data\n-\t    errors.add(:raw_data, \"must be hashable\") unless eval(self.raw_data).class == Hash\n-\t  end\n-\n-   \tdef set_sequential_id\n-   \t\t# only set when create new record and form is set to submission\n-   \t\treturn unless self.new_record? and self.form\n-\n-\t    submission_sequential_max_value = self.form.submissions.maximum('sequential_id')\n-\t    submission_sequential_max_value = 0 if submission_sequential_max_value.nil?\n-\t    submission_sequential_max_value += 1\n-\t    self.sequential_id = submission_sequential_max_value\n-   \tend\n+  def check_raw_data\n+    errors.add(:raw_data, \"must be hashable\") unless eval(self.raw_data).class == Hash\n+  end\n+\n+ \tdef set_sequential_id\n+ \t\t# only set when create new record and form is set to submission\n+ \t\treturn unless self.new_record? and self.form\n+\n+    submission_sequential_max_value = self.form.submissions.maximum('sequential_id')\n+    submission_sequential_max_value = 0 if submission_sequential_max_value.nil?","path":"app/models/submission.rb","position":26,"original_position":26,"commit_id":"dbcf209b732fe92b5bbca444c5fc68934593094d","original_commit_id":"dbcf209b732fe92b5bbca444c5fc68934593094d","user":{"login":"codeguardci","id":9791874,"avatar_url":"https://avatars.githubusercontent.com/u/9791874?v=3","gravatar_id":"","url":"https://api.github.com/users/codeguardci","html_url":"https://github.com/codeguardci","followers_url":"https://api.github.com/users/codeguardci/followers","following_url":"https://api.github.com/users/codeguardci/following{/other_user}","gists_url":"https://api.github.com/users/codeguardci/gists{/gist_id}","starred_url":"https://api.github.com/users/codeguardci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeguardci/subscriptions","organizations_url":"https://api.github.com/users/codeguardci/orgs","repos_url":"https://api.github.com/users/codeguardci/repos","events_url":"https://api.github.com/users/codeguardci/events{/privacy}","received_events_url":"https://api.github.com/users/codeguardci/received_events","type":"User","site_admin":false},"body":"Inconsistent indentation detected.","created_at":"2015-02-05T00:59:40Z","updated_at":"2015-02-05T00:59:40Z","html_url":"https://github.com/olimart/formtastic/pull/15#discussion_r24135499","pull_request_url":"https://api.github.com/repos/olimart/formtastic/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/olimart/formtastic/pulls/comments/24135499"},"html":{"href":"https://github.com/olimart/formtastic/pull/15#discussion_r24135499"},"pull_request":{"href":"https://api.github.com/repos/olimart/formtastic/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/olimart/formtastic/pulls/15","id":28650292,"html_url":"https://github.com/olimart/formtastic/pull/15","diff_url":"https://github.com/olimart/formtastic/pull/15.diff","patch_url":"https://github.com/olimart/formtastic/pull/15.patch","issue_url":"https://api.github.com/repos/olimart/formtastic/issues/15","number":15,"state":"open","locked":false,"title":"#13 Export submissions","user":{"login":"croko","id":333912,"avatar_url":"https://avatars.githubusercontent.com/u/333912?v=3","gravatar_id":"","url":"https://api.github.com/users/croko","html_url":"https://github.com/croko","followers_url":"https://api.github.com/users/croko/followers","following_url":"https://api.github.com/users/croko/following{/other_user}","gists_url":"https://api.github.com/users/croko/gists{/gist_id}","starred_url":"https://api.github.com/users/croko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croko/subscriptions","organizations_url":"https://api.github.com/users/croko/orgs","repos_url":"https://api.github.com/users/croko/repos","events_url":"https://api.github.com/users/croko/events{/privacy}","received_events_url":"https://api.github.com/users/croko/received_events","type":"User","site_admin":false},"body":"Take a look please","created_at":"2015-02-04T16:07:20Z","updated_at":"2015-02-05T00:59:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b11e4aa76d6538aa44342850127a653d7a9b3c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/olimart/formtastic/pulls/15/commits","review_comments_url":"https://api.github.com/repos/olimart/formtastic/pulls/15/comments","review_comment_url":"https://api.github.com/repos/olimart/formtastic/pulls/comments/{number}","comments_url":"https://api.github.com/repos/olimart/formtastic/issues/15/comments","statuses_url":"https://api.github.com/repos/olimart/formtastic/statuses/dbcf209b732fe92b5bbca444c5fc68934593094d","head":{"label":"olimart:export_submissions","ref":"export_submissions","sha":"dbcf209b732fe92b5bbca444c5fc68934593094d","user":{"login":"olimart","id":547754,"avatar_url":"https://avatars.githubusercontent.com/u/547754?v=3","gravatar_id":"","url":"https://api.github.com/users/olimart","html_url":"https://github.com/olimart","followers_url":"https://api.github.com/users/olimart/followers","following_url":"https://api.github.com/users/olimart/following{/other_user}","gists_url":"https://api.github.com/users/olimart/gists{/gist_id}","starred_url":"https://api.github.com/users/olimart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimart/subscriptions","organizations_url":"https://api.github.com/users/olimart/orgs","repos_url":"https://api.github.com/users/olimart/repos","events_url":"https://api.github.com/users/olimart/events{/privacy}","received_events_url":"https://api.github.com/users/olimart/received_events","type":"User","site_admin":false},"repo":{"id":26104609,"name":"formtastic","full_name":"olimart/formtastic","owner":{"login":"olimart","id":547754,"avatar_url":"https://avatars.githubusercontent.com/u/547754?v=3","gravatar_id":"","url":"https://api.github.com/users/olimart","html_url":"https://github.com/olimart","followers_url":"https://api.github.com/users/olimart/followers","following_url":"https://api.github.com/users/olimart/following{/other_user}","gists_url":"https://api.github.com/users/olimart/gists{/gist_id}","starred_url":"https://api.github.com/users/olimart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimart/subscriptions","organizations_url":"https://api.github.com/users/olimart/orgs","repos_url":"https://api.github.com/users/olimart/repos","events_url":"https://api.github.com/users/olimart/events{/privacy}","received_events_url":"https://api.github.com/users/olimart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olimart/formtastic","description":"","fork":false,"url":"https://api.github.com/repos/olimart/formtastic","forks_url":"https://api.github.com/repos/olimart/formtastic/forks","keys_url":"https://api.github.com/repos/olimart/formtastic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olimart/formtastic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olimart/formtastic/teams","hooks_url":"https://api.github.com/repos/olimart/formtastic/hooks","issue_events_url":"https://api.github.com/repos/olimart/formtastic/issues/events{/number}","events_url":"https://api.github.com/repos/olimart/formtastic/events","assignees_url":"https://api.github.com/repos/olimart/formtastic/assignees{/user}","branches_url":"https://api.github.com/repos/olimart/formtastic/branches{/branch}","tags_url":"https://api.github.com/repos/olimart/formtastic/tags","blobs_url":"https://api.github.com/repos/olimart/formtastic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olimart/formtastic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olimart/formtastic/git/refs{/sha}","trees_url":"https://api.github.com/repos/olimart/formtastic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olimart/formtastic/statuses/{sha}","languages_url":"https://api.github.com/repos/olimart/formtastic/languages","stargazers_url":"https://api.github.com/repos/olimart/formtastic/stargazers","contributors_url":"https://api.github.com/repos/olimart/formtastic/contributors","subscribers_url":"https://api.github.com/repos/olimart/formtastic/subscribers","subscription_url":"https://api.github.com/repos/olimart/formtastic/subscription","commits_url":"https://api.github.com/repos/olimart/formtastic/commits{/sha}","git_commits_url":"https://api.github.com/repos/olimart/formtastic/git/commits{/sha}","comments_url":"https://api.github.com/repos/olimart/formtastic/comments{/number}","issue_comment_url":"https://api.github.com/repos/olimart/formtastic/issues/comments/{number}","contents_url":"https://api.github.com/repos/olimart/formtastic/contents/{+path}","compare_url":"https://api.github.com/repos/olimart/formtastic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olimart/formtastic/merges","archive_url":"https://api.github.com/repos/olimart/formtastic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olimart/formtastic/downloads","issues_url":"https://api.github.com/repos/olimart/formtastic/issues{/number}","pulls_url":"https://api.github.com/repos/olimart/formtastic/pulls{/number}","milestones_url":"https://api.github.com/repos/olimart/formtastic/milestones{/number}","notifications_url":"https://api.github.com/repos/olimart/formtastic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olimart/formtastic/labels{/name}","releases_url":"https://api.github.com/repos/olimart/formtastic/releases{/id}","created_at":"2014-11-03T05:05:05Z","updated_at":"2015-02-04T06:19:43Z","pushed_at":"2015-02-05T00:59:37Z","git_url":"git://github.com/olimart/formtastic.git","ssh_url":"git@github.com:olimart/formtastic.git","clone_url":"https://github.com/olimart/formtastic.git","svn_url":"https://github.com/olimart/formtastic","homepage":null,"size":426,"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":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"olimart:master","ref":"master","sha":"7056c135998b0e33553c44947f9b57961b053016","user":{"login":"olimart","id":547754,"avatar_url":"https://avatars.githubusercontent.com/u/547754?v=3","gravatar_id":"","url":"https://api.github.com/users/olimart","html_url":"https://github.com/olimart","followers_url":"https://api.github.com/users/olimart/followers","following_url":"https://api.github.com/users/olimart/following{/other_user}","gists_url":"https://api.github.com/users/olimart/gists{/gist_id}","starred_url":"https://api.github.com/users/olimart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimart/subscriptions","organizations_url":"https://api.github.com/users/olimart/orgs","repos_url":"https://api.github.com/users/olimart/repos","events_url":"https://api.github.com/users/olimart/events{/privacy}","received_events_url":"https://api.github.com/users/olimart/received_events","type":"User","site_admin":false},"repo":{"id":26104609,"name":"formtastic","full_name":"olimart/formtastic","owner":{"login":"olimart","id":547754,"avatar_url":"https://avatars.githubusercontent.com/u/547754?v=3","gravatar_id":"","url":"https://api.github.com/users/olimart","html_url":"https://github.com/olimart","followers_url":"https://api.github.com/users/olimart/followers","following_url":"https://api.github.com/users/olimart/following{/other_user}","gists_url":"https://api.github.com/users/olimart/gists{/gist_id}","starred_url":"https://api.github.com/users/olimart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olimart/subscriptions","organizations_url":"https://api.github.com/users/olimart/orgs","repos_url":"https://api.github.com/users/olimart/repos","events_url":"https://api.github.com/users/olimart/events{/privacy}","received_events_url":"https://api.github.com/users/olimart/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olimart/formtastic","description":"","fork":false,"url":"https://api.github.com/repos/olimart/formtastic","forks_url":"https://api.github.com/repos/olimart/formtastic/forks","keys_url":"https://api.github.com/repos/olimart/formtastic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olimart/formtastic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olimart/formtastic/teams","hooks_url":"https://api.github.com/repos/olimart/formtastic/hooks","issue_events_url":"https://api.github.com/repos/olimart/formtastic/issues/events{/number}","events_url":"https://api.github.com/repos/olimart/formtastic/events","assignees_url":"https://api.github.com/repos/olimart/formtastic/assignees{/user}","branches_url":"https://api.github.com/repos/olimart/formtastic/branches{/branch}","tags_url":"https://api.github.com/repos/olimart/formtastic/tags","blobs_url":"https://api.github.com/repos/olimart/formtastic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olimart/formtastic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olimart/formtastic/git/refs{/sha}","trees_url":"https://api.github.com/repos/olimart/formtastic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olimart/formtastic/statuses/{sha}","languages_url":"https://api.github.com/repos/olimart/formtastic/languages","stargazers_url":"https://api.github.com/repos/olimart/formtastic/stargazers","contributors_url":"https://api.github.com/repos/olimart/formtastic/contributors","subscribers_url":"https://api.github.com/repos/olimart/formtastic/subscribers","subscription_url":"https://api.github.com/repos/olimart/formtastic/subscription","commits_url":"https://api.github.com/repos/olimart/formtastic/commits{/sha}","git_commits_url":"https://api.github.com/repos/olimart/formtastic/git/commits{/sha}","comments_url":"https://api.github.com/repos/olimart/formtastic/comments{/number}","issue_comment_url":"https://api.github.com/repos/olimart/formtastic/issues/comments/{number}","contents_url":"https://api.github.com/repos/olimart/formtastic/contents/{+path}","compare_url":"https://api.github.com/repos/olimart/formtastic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olimart/formtastic/merges","archive_url":"https://api.github.com/repos/olimart/formtastic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olimart/formtastic/downloads","issues_url":"https://api.github.com/repos/olimart/formtastic/issues{/number}","pulls_url":"https://api.github.com/repos/olimart/formtastic/pulls{/number}","milestones_url":"https://api.github.com/repos/olimart/formtastic/milestones{/number}","notifications_url":"https://api.github.com/repos/olimart/formtastic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olimart/formtastic/labels{/name}","releases_url":"https://api.github.com/repos/olimart/formtastic/releases{/id}","created_at":"2014-11-03T05:05:05Z","updated_at":"2015-02-04T06:19:43Z","pushed_at":"2015-02-05T00:59:37Z","git_url":"git://github.com/olimart/formtastic.git","ssh_url":"git@github.com:olimart/formtastic.git","clone_url":"https://github.com/olimart/formtastic.git","svn_url":"https://github.com/olimart/formtastic","homepage":null,"size":426,"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":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/olimart/formtastic/pulls/15"},"html":{"href":"https://github.com/olimart/formtastic/pull/15"},"issue":{"href":"https://api.github.com/repos/olimart/formtastic/issues/15"},"comments":{"href":"https://api.github.com/repos/olimart/formtastic/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/olimart/formtastic/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/olimart/formtastic/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/olimart/formtastic/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/olimart/formtastic/statuses/dbcf209b732fe92b5bbca444c5fc68934593094d"}}}}