{"action":"created","comment":{"url":"https://api.github.com/repos/somleng/somleng-scfm/pulls/comments/193933792","pull_request_review_id":127009349,"id":193933792,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MzkzMzc5Mg==","diff_hunk":"@@ -1,10 +1,15 @@\n class User < ApplicationRecord\n   include MetadataHelpers\n-\n   # Include default devise modules. Others available are:\n   # :confirmable, :lockable, :timeoutable and :omniauthable\n   devise :invitable, :registerable, :database_authenticatable,\n          :recoverable, :rememberable, :trackable, :validatable, :async\n \n   belongs_to :account\n+\n+  validates_inclusion_of :locale, in: %w[en km]\n+\n+  def locale_en?","path":"app/models/user.rb","position":13,"original_position":13,"commit_id":"ee664f04fd94a7deb5f02654665883db146514fe","original_commit_id":"ee664f04fd94a7deb5f02654665883db146514fe","user":{"login":"dwilkie","id":127583,"node_id":"MDQ6VXNlcjEyNzU4Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/127583?v=4","gravatar_id":"","url":"https://api.github.com/users/dwilkie","html_url":"https://github.com/dwilkie","followers_url":"https://api.github.com/users/dwilkie/followers","following_url":"https://api.github.com/users/dwilkie/following{/other_user}","gists_url":"https://api.github.com/users/dwilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/dwilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwilkie/subscriptions","organizations_url":"https://api.github.com/users/dwilkie/orgs","repos_url":"https://api.github.com/users/dwilkie/repos","events_url":"https://api.github.com/users/dwilkie/events{/privacy}","received_events_url":"https://api.github.com/users/dwilkie/received_events","type":"User","site_admin":false},"body":"After you implement the drop down menu and remove the conditional you can remove this method ","created_at":"2018-06-08T01:44:57Z","updated_at":"2018-06-08T01:47:47Z","html_url":"https://github.com/somleng/somleng-scfm/pull/117#discussion_r193933792","pull_request_url":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/somleng/somleng-scfm/pulls/comments/193933792"},"html":{"href":"https://github.com/somleng/somleng-scfm/pull/117#discussion_r193933792"},"pull_request":{"href":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117","id":193264216,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkzMjY0MjE2","html_url":"https://github.com/somleng/somleng-scfm/pull/117","diff_url":"https://github.com/somleng/somleng-scfm/pull/117.diff","patch_url":"https://github.com/somleng/somleng-scfm/pull/117.patch","issue_url":"https://api.github.com/repos/somleng/somleng-scfm/issues/117","number":117,"state":"open","locked":false,"title":"add language switcher","user":{"login":"simleap","id":1457042,"node_id":"MDQ6VXNlcjE0NTcwNDI=","avatar_url":"https://avatars1.githubusercontent.com/u/1457042?v=4","gravatar_id":"","url":"https://api.github.com/users/simleap","html_url":"https://github.com/simleap","followers_url":"https://api.github.com/users/simleap/followers","following_url":"https://api.github.com/users/simleap/following{/other_user}","gists_url":"https://api.github.com/users/simleap/gists{/gist_id}","starred_url":"https://api.github.com/users/simleap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simleap/subscriptions","organizations_url":"https://api.github.com/users/simleap/orgs","repos_url":"https://api.github.com/users/simleap/repos","events_url":"https://api.github.com/users/simleap/events{/privacy}","received_events_url":"https://api.github.com/users/simleap/received_events","type":"User","site_admin":false},"body":"https://www.pivotaltracker.com/n/projects/2148301/stories/158048791","created_at":"2018-06-07T09:52:40Z","updated_at":"2018-06-08T01:47:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"646679b91670ce5af3b9a1f27d5e7fe51582b9e0","assignee":null,"assignees":[],"requested_reviewers":[{"login":"samnang","id":131172,"node_id":"MDQ6VXNlcjEzMTE3Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/131172?v=4","gravatar_id":"","url":"https://api.github.com/users/samnang","html_url":"https://github.com/samnang","followers_url":"https://api.github.com/users/samnang/followers","following_url":"https://api.github.com/users/samnang/following{/other_user}","gists_url":"https://api.github.com/users/samnang/gists{/gist_id}","starred_url":"https://api.github.com/users/samnang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samnang/subscriptions","organizations_url":"https://api.github.com/users/samnang/orgs","repos_url":"https://api.github.com/users/samnang/repos","events_url":"https://api.github.com/users/samnang/events{/privacy}","received_events_url":"https://api.github.com/users/samnang/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117/commits","review_comments_url":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117/comments","review_comment_url":"https://api.github.com/repos/somleng/somleng-scfm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/somleng/somleng-scfm/issues/117/comments","statuses_url":"https://api.github.com/repos/somleng/somleng-scfm/statuses/ee664f04fd94a7deb5f02654665883db146514fe","head":{"label":"somleng:leap/user-locale","ref":"leap/user-locale","sha":"ee664f04fd94a7deb5f02654665883db146514fe","user":{"login":"somleng","id":25052299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDUyMjk5","avatar_url":"https://avatars3.githubusercontent.com/u/25052299?v=4","gravatar_id":"","url":"https://api.github.com/users/somleng","html_url":"https://github.com/somleng","followers_url":"https://api.github.com/users/somleng/followers","following_url":"https://api.github.com/users/somleng/following{/other_user}","gists_url":"https://api.github.com/users/somleng/gists{/gist_id}","starred_url":"https://api.github.com/users/somleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somleng/subscriptions","organizations_url":"https://api.github.com/users/somleng/orgs","repos_url":"https://api.github.com/users/somleng/repos","events_url":"https://api.github.com/users/somleng/events{/privacy}","received_events_url":"https://api.github.com/users/somleng/received_events","type":"Organization","site_admin":false},"repo":{"id":104858538,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ4NTg1Mzg=","name":"somleng-scfm","full_name":"somleng/somleng-scfm","owner":{"login":"somleng","id":25052299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDUyMjk5","avatar_url":"https://avatars3.githubusercontent.com/u/25052299?v=4","gravatar_id":"","url":"https://api.github.com/users/somleng","html_url":"https://github.com/somleng","followers_url":"https://api.github.com/users/somleng/followers","following_url":"https://api.github.com/users/somleng/following{/other_user}","gists_url":"https://api.github.com/users/somleng/gists{/gist_id}","starred_url":"https://api.github.com/users/somleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somleng/subscriptions","organizations_url":"https://api.github.com/users/somleng/orgs","repos_url":"https://api.github.com/users/somleng/repos","events_url":"https://api.github.com/users/somleng/events{/privacy}","received_events_url":"https://api.github.com/users/somleng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/somleng/somleng-scfm","description":"Simple Call Flow Manager for Somleng (or Twilio)","fork":false,"url":"https://api.github.com/repos/somleng/somleng-scfm","forks_url":"https://api.github.com/repos/somleng/somleng-scfm/forks","keys_url":"https://api.github.com/repos/somleng/somleng-scfm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/somleng/somleng-scfm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/somleng/somleng-scfm/teams","hooks_url":"https://api.github.com/repos/somleng/somleng-scfm/hooks","issue_events_url":"https://api.github.com/repos/somleng/somleng-scfm/issues/events{/number}","events_url":"https://api.github.com/repos/somleng/somleng-scfm/events","assignees_url":"https://api.github.com/repos/somleng/somleng-scfm/assignees{/user}","branches_url":"https://api.github.com/repos/somleng/somleng-scfm/branches{/branch}","tags_url":"https://api.github.com/repos/somleng/somleng-scfm/tags","blobs_url":"https://api.github.com/repos/somleng/somleng-scfm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/somleng/somleng-scfm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/somleng/somleng-scfm/git/refs{/sha}","trees_url":"https://api.github.com/repos/somleng/somleng-scfm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/somleng/somleng-scfm/statuses/{sha}","languages_url":"https://api.github.com/repos/somleng/somleng-scfm/languages","stargazers_url":"https://api.github.com/repos/somleng/somleng-scfm/stargazers","contributors_url":"https://api.github.com/repos/somleng/somleng-scfm/contributors","subscribers_url":"https://api.github.com/repos/somleng/somleng-scfm/subscribers","subscription_url":"https://api.github.com/repos/somleng/somleng-scfm/subscription","commits_url":"https://api.github.com/repos/somleng/somleng-scfm/commits{/sha}","git_commits_url":"https://api.github.com/repos/somleng/somleng-scfm/git/commits{/sha}","comments_url":"https://api.github.com/repos/somleng/somleng-scfm/comments{/number}","issue_comment_url":"https://api.github.com/repos/somleng/somleng-scfm/issues/comments{/number}","contents_url":"https://api.github.com/repos/somleng/somleng-scfm/contents/{+path}","compare_url":"https://api.github.com/repos/somleng/somleng-scfm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/somleng/somleng-scfm/merges","archive_url":"https://api.github.com/repos/somleng/somleng-scfm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/somleng/somleng-scfm/downloads","issues_url":"https://api.github.com/repos/somleng/somleng-scfm/issues{/number}","pulls_url":"https://api.github.com/repos/somleng/somleng-scfm/pulls{/number}","milestones_url":"https://api.github.com/repos/somleng/somleng-scfm/milestones{/number}","notifications_url":"https://api.github.com/repos/somleng/somleng-scfm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/somleng/somleng-scfm/labels{/name}","releases_url":"https://api.github.com/repos/somleng/somleng-scfm/releases{/id}","deployments_url":"https://api.github.com/repos/somleng/somleng-scfm/deployments","created_at":"2017-09-26T08:36:02Z","updated_at":"2018-06-05T15:39:26Z","pushed_at":"2018-06-07T10:33:18Z","git_url":"git://github.com/somleng/somleng-scfm.git","ssh_url":"git@github.com:somleng/somleng-scfm.git","clone_url":"https://github.com/somleng/somleng-scfm.git","svn_url":"https://github.com/somleng/somleng-scfm","homepage":null,"size":923,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":4,"open_issues":4,"watchers":0,"default_branch":"develop"}},"base":{"label":"somleng:develop","ref":"develop","sha":"5ba5bd53befd42d7e9b0290793481483fb9df3cf","user":{"login":"somleng","id":25052299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDUyMjk5","avatar_url":"https://avatars3.githubusercontent.com/u/25052299?v=4","gravatar_id":"","url":"https://api.github.com/users/somleng","html_url":"https://github.com/somleng","followers_url":"https://api.github.com/users/somleng/followers","following_url":"https://api.github.com/users/somleng/following{/other_user}","gists_url":"https://api.github.com/users/somleng/gists{/gist_id}","starred_url":"https://api.github.com/users/somleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somleng/subscriptions","organizations_url":"https://api.github.com/users/somleng/orgs","repos_url":"https://api.github.com/users/somleng/repos","events_url":"https://api.github.com/users/somleng/events{/privacy}","received_events_url":"https://api.github.com/users/somleng/received_events","type":"Organization","site_admin":false},"repo":{"id":104858538,"node_id":"MDEwOlJlcG9zaXRvcnkxMDQ4NTg1Mzg=","name":"somleng-scfm","full_name":"somleng/somleng-scfm","owner":{"login":"somleng","id":25052299,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDUyMjk5","avatar_url":"https://avatars3.githubusercontent.com/u/25052299?v=4","gravatar_id":"","url":"https://api.github.com/users/somleng","html_url":"https://github.com/somleng","followers_url":"https://api.github.com/users/somleng/followers","following_url":"https://api.github.com/users/somleng/following{/other_user}","gists_url":"https://api.github.com/users/somleng/gists{/gist_id}","starred_url":"https://api.github.com/users/somleng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somleng/subscriptions","organizations_url":"https://api.github.com/users/somleng/orgs","repos_url":"https://api.github.com/users/somleng/repos","events_url":"https://api.github.com/users/somleng/events{/privacy}","received_events_url":"https://api.github.com/users/somleng/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/somleng/somleng-scfm","description":"Simple Call Flow Manager for Somleng (or Twilio)","fork":false,"url":"https://api.github.com/repos/somleng/somleng-scfm","forks_url":"https://api.github.com/repos/somleng/somleng-scfm/forks","keys_url":"https://api.github.com/repos/somleng/somleng-scfm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/somleng/somleng-scfm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/somleng/somleng-scfm/teams","hooks_url":"https://api.github.com/repos/somleng/somleng-scfm/hooks","issue_events_url":"https://api.github.com/repos/somleng/somleng-scfm/issues/events{/number}","events_url":"https://api.github.com/repos/somleng/somleng-scfm/events","assignees_url":"https://api.github.com/repos/somleng/somleng-scfm/assignees{/user}","branches_url":"https://api.github.com/repos/somleng/somleng-scfm/branches{/branch}","tags_url":"https://api.github.com/repos/somleng/somleng-scfm/tags","blobs_url":"https://api.github.com/repos/somleng/somleng-scfm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/somleng/somleng-scfm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/somleng/somleng-scfm/git/refs{/sha}","trees_url":"https://api.github.com/repos/somleng/somleng-scfm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/somleng/somleng-scfm/statuses/{sha}","languages_url":"https://api.github.com/repos/somleng/somleng-scfm/languages","stargazers_url":"https://api.github.com/repos/somleng/somleng-scfm/stargazers","contributors_url":"https://api.github.com/repos/somleng/somleng-scfm/contributors","subscribers_url":"https://api.github.com/repos/somleng/somleng-scfm/subscribers","subscription_url":"https://api.github.com/repos/somleng/somleng-scfm/subscription","commits_url":"https://api.github.com/repos/somleng/somleng-scfm/commits{/sha}","git_commits_url":"https://api.github.com/repos/somleng/somleng-scfm/git/commits{/sha}","comments_url":"https://api.github.com/repos/somleng/somleng-scfm/comments{/number}","issue_comment_url":"https://api.github.com/repos/somleng/somleng-scfm/issues/comments{/number}","contents_url":"https://api.github.com/repos/somleng/somleng-scfm/contents/{+path}","compare_url":"https://api.github.com/repos/somleng/somleng-scfm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/somleng/somleng-scfm/merges","archive_url":"https://api.github.com/repos/somleng/somleng-scfm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/somleng/somleng-scfm/downloads","issues_url":"https://api.github.com/repos/somleng/somleng-scfm/issues{/number}","pulls_url":"https://api.github.com/repos/somleng/somleng-scfm/pulls{/number}","milestones_url":"https://api.github.com/repos/somleng/somleng-scfm/milestones{/number}","notifications_url":"https://api.github.com/repos/somleng/somleng-scfm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/somleng/somleng-scfm/labels{/name}","releases_url":"https://api.github.com/repos/somleng/somleng-scfm/releases{/id}","deployments_url":"https://api.github.com/repos/somleng/somleng-scfm/deployments","created_at":"2017-09-26T08:36:02Z","updated_at":"2018-06-05T15:39:26Z","pushed_at":"2018-06-07T10:33:18Z","git_url":"git://github.com/somleng/somleng-scfm.git","ssh_url":"git@github.com:somleng/somleng-scfm.git","clone_url":"https://github.com/somleng/somleng-scfm.git","svn_url":"https://github.com/somleng/somleng-scfm","homepage":null,"size":923,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":4,"open_issues":4,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117"},"html":{"href":"https://github.com/somleng/somleng-scfm/pull/117"},"issue":{"href":"https://api.github.com/repos/somleng/somleng-scfm/issues/117"},"comments":{"href":"https://api.github.com/repos/somleng/somleng-scfm/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/somleng/somleng-scfm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/somleng/somleng-scfm/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/somleng/somleng-scfm/statuses/ee664f04fd94a7deb5f02654665883db146514fe"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dwilkie"}}