{"action":"created","comment":{"url":"https://api.github.com/repos/allistera/car_mileager_api/pulls/comments/31813846","id":31813846,"diff_hunk":"@@ -2,26 +2,30 @@\n # User model\n #\n class User < ActiveRecord::Base\n-  # Include default devise modules. Others available are:\n-  # :confirmable, :lockable, :timeoutable and :omniauthable\n-  devise :database_authenticatable, :registerable,\n-          :trackable, :validatable\n+# Include default devise modules. Others available are:\n+# :confirmable, :lockable, :timeoutable and :omniauthable\n+devise :database_authenticatable, :registerable,\n+        :trackable, :validatable\n \n-   before_save :ensure_authentication_token\n+  after_create :create_settings\n+  before_save :ensure_authentication_token\n \n-   def ensure_authentication_token\n-     if authentication_token.blank?\n-       self.authentication_token = generate_authentication_token\n-     end\n-   end\n+  def ensure_authentication_token\n+    if authentication_token.blank?\n+      self.authentication_token = generate_authentication_token\n+    end\n+  end\n \n-   private\n+  private\n \n-   def generate_authentication_token\n-     loop do\n-       token = Devise.friendly_token\n-       break token unless User.where(authentication_token: token).first\n-     end\n-   end\n+  def generate_authentication_token\n+    loop do\n+      token = Devise.friendly_token\n+      break token unless User.where(authentication_token: token).first\n+    end\n+  end\n \n+  def create_settings","path":"app/models/user.rb","position":44,"original_position":44,"commit_id":"b495c5c858d6aa9c0d64d34ebaab649a79aeb354","original_commit_id":"b495c5c858d6aa9c0d64d34ebaab649a79aeb354","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":"Inconsistent indentation detected.","created_at":"2015-06-05T13:53:24Z","updated_at":"2015-06-05T13:53:24Z","html_url":"https://github.com/allistera/car_mileager_api/pull/6#discussion_r31813846","pull_request_url":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/allistera/car_mileager_api/pulls/comments/31813846"},"html":{"href":"https://github.com/allistera/car_mileager_api/pull/6#discussion_r31813846"},"pull_request":{"href":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6","id":37032536,"html_url":"https://github.com/allistera/car_mileager_api/pull/6","diff_url":"https://github.com/allistera/car_mileager_api/pull/6.diff","patch_url":"https://github.com/allistera/car_mileager_api/pull/6.patch","issue_url":"https://api.github.com/repos/allistera/car_mileager_api/issues/6","number":6,"state":"open","locked":false,"title":"Created settings on user account creation rather than on demand","user":{"login":"allistera","id":80728,"avatar_url":"https://avatars.githubusercontent.com/u/80728?v=3","gravatar_id":"","url":"https://api.github.com/users/allistera","html_url":"https://github.com/allistera","followers_url":"https://api.github.com/users/allistera/followers","following_url":"https://api.github.com/users/allistera/following{/other_user}","gists_url":"https://api.github.com/users/allistera/gists{/gist_id}","starred_url":"https://api.github.com/users/allistera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allistera/subscriptions","organizations_url":"https://api.github.com/users/allistera/orgs","repos_url":"https://api.github.com/users/allistera/repos","events_url":"https://api.github.com/users/allistera/events{/privacy}","received_events_url":"https://api.github.com/users/allistera/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-05T13:46:13Z","updated_at":"2015-06-05T13:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f06553d78162af919c44fc7b01663eee3682c793","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6/commits","review_comments_url":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6/comments","review_comment_url":"https://api.github.com/repos/allistera/car_mileager_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allistera/car_mileager_api/issues/6/comments","statuses_url":"https://api.github.com/repos/allistera/car_mileager_api/statuses/b495c5c858d6aa9c0d64d34ebaab649a79aeb354","head":{"label":"allistera:update_settings_creation","ref":"update_settings_creation","sha":"b495c5c858d6aa9c0d64d34ebaab649a79aeb354","user":{"login":"allistera","id":80728,"avatar_url":"https://avatars.githubusercontent.com/u/80728?v=3","gravatar_id":"","url":"https://api.github.com/users/allistera","html_url":"https://github.com/allistera","followers_url":"https://api.github.com/users/allistera/followers","following_url":"https://api.github.com/users/allistera/following{/other_user}","gists_url":"https://api.github.com/users/allistera/gists{/gist_id}","starred_url":"https://api.github.com/users/allistera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allistera/subscriptions","organizations_url":"https://api.github.com/users/allistera/orgs","repos_url":"https://api.github.com/users/allistera/repos","events_url":"https://api.github.com/users/allistera/events{/privacy}","received_events_url":"https://api.github.com/users/allistera/received_events","type":"User","site_admin":false},"repo":{"id":34209623,"name":"car_mileager_api","full_name":"allistera/car_mileager_api","owner":{"login":"allistera","id":80728,"avatar_url":"https://avatars.githubusercontent.com/u/80728?v=3","gravatar_id":"","url":"https://api.github.com/users/allistera","html_url":"https://github.com/allistera","followers_url":"https://api.github.com/users/allistera/followers","following_url":"https://api.github.com/users/allistera/following{/other_user}","gists_url":"https://api.github.com/users/allistera/gists{/gist_id}","starred_url":"https://api.github.com/users/allistera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allistera/subscriptions","organizations_url":"https://api.github.com/users/allistera/orgs","repos_url":"https://api.github.com/users/allistera/repos","events_url":"https://api.github.com/users/allistera/events{/privacy}","received_events_url":"https://api.github.com/users/allistera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allistera/car_mileager_api","description":"","fork":false,"url":"https://api.github.com/repos/allistera/car_mileager_api","forks_url":"https://api.github.com/repos/allistera/car_mileager_api/forks","keys_url":"https://api.github.com/repos/allistera/car_mileager_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allistera/car_mileager_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allistera/car_mileager_api/teams","hooks_url":"https://api.github.com/repos/allistera/car_mileager_api/hooks","issue_events_url":"https://api.github.com/repos/allistera/car_mileager_api/issues/events{/number}","events_url":"https://api.github.com/repos/allistera/car_mileager_api/events","assignees_url":"https://api.github.com/repos/allistera/car_mileager_api/assignees{/user}","branches_url":"https://api.github.com/repos/allistera/car_mileager_api/branches{/branch}","tags_url":"https://api.github.com/repos/allistera/car_mileager_api/tags","blobs_url":"https://api.github.com/repos/allistera/car_mileager_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allistera/car_mileager_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allistera/car_mileager_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/allistera/car_mileager_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allistera/car_mileager_api/statuses/{sha}","languages_url":"https://api.github.com/repos/allistera/car_mileager_api/languages","stargazers_url":"https://api.github.com/repos/allistera/car_mileager_api/stargazers","contributors_url":"https://api.github.com/repos/allistera/car_mileager_api/contributors","subscribers_url":"https://api.github.com/repos/allistera/car_mileager_api/subscribers","subscription_url":"https://api.github.com/repos/allistera/car_mileager_api/subscription","commits_url":"https://api.github.com/repos/allistera/car_mileager_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/allistera/car_mileager_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/allistera/car_mileager_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/allistera/car_mileager_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/allistera/car_mileager_api/contents/{+path}","compare_url":"https://api.github.com/repos/allistera/car_mileager_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allistera/car_mileager_api/merges","archive_url":"https://api.github.com/repos/allistera/car_mileager_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allistera/car_mileager_api/downloads","issues_url":"https://api.github.com/repos/allistera/car_mileager_api/issues{/number}","pulls_url":"https://api.github.com/repos/allistera/car_mileager_api/pulls{/number}","milestones_url":"https://api.github.com/repos/allistera/car_mileager_api/milestones{/number}","notifications_url":"https://api.github.com/repos/allistera/car_mileager_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allistera/car_mileager_api/labels{/name}","releases_url":"https://api.github.com/repos/allistera/car_mileager_api/releases{/id}","created_at":"2015-04-19T14:23:39Z","updated_at":"2015-04-19T14:52:31Z","pushed_at":"2015-06-05T13:53:19Z","git_url":"git://github.com/allistera/car_mileager_api.git","ssh_url":"git@github.com:allistera/car_mileager_api.git","clone_url":"https://github.com/allistera/car_mileager_api.git","svn_url":"https://github.com/allistera/car_mileager_api","homepage":null,"size":248,"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":"allistera:master","ref":"master","sha":"362ffa277ceec076fc496471ab36feb69ed02c3d","user":{"login":"allistera","id":80728,"avatar_url":"https://avatars.githubusercontent.com/u/80728?v=3","gravatar_id":"","url":"https://api.github.com/users/allistera","html_url":"https://github.com/allistera","followers_url":"https://api.github.com/users/allistera/followers","following_url":"https://api.github.com/users/allistera/following{/other_user}","gists_url":"https://api.github.com/users/allistera/gists{/gist_id}","starred_url":"https://api.github.com/users/allistera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allistera/subscriptions","organizations_url":"https://api.github.com/users/allistera/orgs","repos_url":"https://api.github.com/users/allistera/repos","events_url":"https://api.github.com/users/allistera/events{/privacy}","received_events_url":"https://api.github.com/users/allistera/received_events","type":"User","site_admin":false},"repo":{"id":34209623,"name":"car_mileager_api","full_name":"allistera/car_mileager_api","owner":{"login":"allistera","id":80728,"avatar_url":"https://avatars.githubusercontent.com/u/80728?v=3","gravatar_id":"","url":"https://api.github.com/users/allistera","html_url":"https://github.com/allistera","followers_url":"https://api.github.com/users/allistera/followers","following_url":"https://api.github.com/users/allistera/following{/other_user}","gists_url":"https://api.github.com/users/allistera/gists{/gist_id}","starred_url":"https://api.github.com/users/allistera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allistera/subscriptions","organizations_url":"https://api.github.com/users/allistera/orgs","repos_url":"https://api.github.com/users/allistera/repos","events_url":"https://api.github.com/users/allistera/events{/privacy}","received_events_url":"https://api.github.com/users/allistera/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allistera/car_mileager_api","description":"","fork":false,"url":"https://api.github.com/repos/allistera/car_mileager_api","forks_url":"https://api.github.com/repos/allistera/car_mileager_api/forks","keys_url":"https://api.github.com/repos/allistera/car_mileager_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allistera/car_mileager_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allistera/car_mileager_api/teams","hooks_url":"https://api.github.com/repos/allistera/car_mileager_api/hooks","issue_events_url":"https://api.github.com/repos/allistera/car_mileager_api/issues/events{/number}","events_url":"https://api.github.com/repos/allistera/car_mileager_api/events","assignees_url":"https://api.github.com/repos/allistera/car_mileager_api/assignees{/user}","branches_url":"https://api.github.com/repos/allistera/car_mileager_api/branches{/branch}","tags_url":"https://api.github.com/repos/allistera/car_mileager_api/tags","blobs_url":"https://api.github.com/repos/allistera/car_mileager_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allistera/car_mileager_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allistera/car_mileager_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/allistera/car_mileager_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allistera/car_mileager_api/statuses/{sha}","languages_url":"https://api.github.com/repos/allistera/car_mileager_api/languages","stargazers_url":"https://api.github.com/repos/allistera/car_mileager_api/stargazers","contributors_url":"https://api.github.com/repos/allistera/car_mileager_api/contributors","subscribers_url":"https://api.github.com/repos/allistera/car_mileager_api/subscribers","subscription_url":"https://api.github.com/repos/allistera/car_mileager_api/subscription","commits_url":"https://api.github.com/repos/allistera/car_mileager_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/allistera/car_mileager_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/allistera/car_mileager_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/allistera/car_mileager_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/allistera/car_mileager_api/contents/{+path}","compare_url":"https://api.github.com/repos/allistera/car_mileager_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allistera/car_mileager_api/merges","archive_url":"https://api.github.com/repos/allistera/car_mileager_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allistera/car_mileager_api/downloads","issues_url":"https://api.github.com/repos/allistera/car_mileager_api/issues{/number}","pulls_url":"https://api.github.com/repos/allistera/car_mileager_api/pulls{/number}","milestones_url":"https://api.github.com/repos/allistera/car_mileager_api/milestones{/number}","notifications_url":"https://api.github.com/repos/allistera/car_mileager_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allistera/car_mileager_api/labels{/name}","releases_url":"https://api.github.com/repos/allistera/car_mileager_api/releases{/id}","created_at":"2015-04-19T14:23:39Z","updated_at":"2015-04-19T14:52:31Z","pushed_at":"2015-06-05T13:53:19Z","git_url":"git://github.com/allistera/car_mileager_api.git","ssh_url":"git@github.com:allistera/car_mileager_api.git","clone_url":"https://github.com/allistera/car_mileager_api.git","svn_url":"https://github.com/allistera/car_mileager_api","homepage":null,"size":248,"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/allistera/car_mileager_api/pulls/6"},"html":{"href":"https://github.com/allistera/car_mileager_api/pull/6"},"issue":{"href":"https://api.github.com/repos/allistera/car_mileager_api/issues/6"},"comments":{"href":"https://api.github.com/repos/allistera/car_mileager_api/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/allistera/car_mileager_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allistera/car_mileager_api/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/allistera/car_mileager_api/statuses/b495c5c858d6aa9c0d64d34ebaab649a79aeb354"}}}}