{"action":"created","comment":{"url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/comments/77667628","id":77667628,"diff_hunk":"@@ -96,12 +96,12 @@ def get_object(model_sym)\n     # Can be overriden to show whatever you like\n     # Hash also includes a key/value pair for each method in extra_data\n     #\n-    def json_for_autocomplete(items, method, extra_data=[])\n+    def json_for_autocomplete(items, method, extra_data=[], extra_methods=[])\n       items = items.collect do |item|\n         hash = HashWithIndifferentAccess.new({\"id\" => item.id.to_s, \"label\" => item.send(method), \"value\" => item.send(method)})\n-        extra_data.each do |datum|\n+        extra_methods.each do |datum|","path":"lib/rails-jquery-autocomplete/autocomplete.rb","position":18,"original_position":18,"commit_id":"3908aa3e21c621b6c6ff99f77d4c15d18aece550","original_commit_id":"3908aa3e21c621b6c6ff99f77d4c15d18aece550","user":{"login":"juanpedrojose","id":341330,"avatar_url":"https://avatars.githubusercontent.com/u/341330?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpedrojose","html_url":"https://github.com/juanpedrojose","followers_url":"https://api.github.com/users/juanpedrojose/followers","following_url":"https://api.github.com/users/juanpedrojose/following{/other_user}","gists_url":"https://api.github.com/users/juanpedrojose/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpedrojose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpedrojose/subscriptions","organizations_url":"https://api.github.com/users/juanpedrojose/orgs","repos_url":"https://api.github.com/users/juanpedrojose/repos","events_url":"https://api.github.com/users/juanpedrojose/events{/privacy}","received_events_url":"https://api.github.com/users/juanpedrojose/received_events","type":"User","site_admin":false},"body":"Somewhere in other place extra_data is translated to columns name and then passed to a SQL query. I don't think reasonable to spend time for refactoring this gem.","created_at":"2016-09-06T16:16:26Z","updated_at":"2016-09-06T16:16:27Z","html_url":"https://github.com/lokalebasen/rails-jquery-autocomplete/pull/1#discussion_r77667628","pull_request_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/comments/77667628"},"html":{"href":"https://github.com/lokalebasen/rails-jquery-autocomplete/pull/1#discussion_r77667628"},"pull_request":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1","id":84130913,"html_url":"https://github.com/lokalebasen/rails-jquery-autocomplete/pull/1","diff_url":"https://github.com/lokalebasen/rails-jquery-autocomplete/pull/1.diff","patch_url":"https://github.com/lokalebasen/rails-jquery-autocomplete/pull/1.patch","issue_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues/1","number":1,"state":"open","locked":false,"title":"Update readme for forked gem. Add extra_methods.","user":{"login":"juanpedrojose","id":341330,"avatar_url":"https://avatars.githubusercontent.com/u/341330?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpedrojose","html_url":"https://github.com/juanpedrojose","followers_url":"https://api.github.com/users/juanpedrojose/followers","following_url":"https://api.github.com/users/juanpedrojose/following{/other_user}","gists_url":"https://api.github.com/users/juanpedrojose/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpedrojose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpedrojose/subscriptions","organizations_url":"https://api.github.com/users/juanpedrojose/orgs","repos_url":"https://api.github.com/users/juanpedrojose/repos","events_url":"https://api.github.com/users/juanpedrojose/events{/privacy}","received_events_url":"https://api.github.com/users/juanpedrojose/received_events","type":"User","site_admin":false},"body":"Update readme for forked gem. Add extra_methods, that may be called as methods and then be included in resulting JSON.","created_at":"2016-09-06T14:18:58Z","updated_at":"2016-09-06T16:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5796ff96304856b69f560877d74ddd37881ce9d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues/1/comments","statuses_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/statuses/3908aa3e21c621b6c6ff99f77d4c15d18aece550","head":{"label":"juanpedrojose:add-extra_methods-to-be-included-with-results","ref":"add-extra_methods-to-be-included-with-results","sha":"3908aa3e21c621b6c6ff99f77d4c15d18aece550","user":{"login":"juanpedrojose","id":341330,"avatar_url":"https://avatars.githubusercontent.com/u/341330?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpedrojose","html_url":"https://github.com/juanpedrojose","followers_url":"https://api.github.com/users/juanpedrojose/followers","following_url":"https://api.github.com/users/juanpedrojose/following{/other_user}","gists_url":"https://api.github.com/users/juanpedrojose/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpedrojose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpedrojose/subscriptions","organizations_url":"https://api.github.com/users/juanpedrojose/orgs","repos_url":"https://api.github.com/users/juanpedrojose/repos","events_url":"https://api.github.com/users/juanpedrojose/events{/privacy}","received_events_url":"https://api.github.com/users/juanpedrojose/received_events","type":"User","site_admin":false},"repo":{"id":67498065,"name":"rails-jquery-autocomplete","full_name":"juanpedrojose/rails-jquery-autocomplete","owner":{"login":"juanpedrojose","id":341330,"avatar_url":"https://avatars.githubusercontent.com/u/341330?v=3","gravatar_id":"","url":"https://api.github.com/users/juanpedrojose","html_url":"https://github.com/juanpedrojose","followers_url":"https://api.github.com/users/juanpedrojose/followers","following_url":"https://api.github.com/users/juanpedrojose/following{/other_user}","gists_url":"https://api.github.com/users/juanpedrojose/gists{/gist_id}","starred_url":"https://api.github.com/users/juanpedrojose/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanpedrojose/subscriptions","organizations_url":"https://api.github.com/users/juanpedrojose/orgs","repos_url":"https://api.github.com/users/juanpedrojose/repos","events_url":"https://api.github.com/users/juanpedrojose/events{/privacy}","received_events_url":"https://api.github.com/users/juanpedrojose/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/juanpedrojose/rails-jquery-autocomplete","description":"An easy and unobtrusive way to use jQuery's autocomplete with Rails 3 and later.","fork":true,"url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete","forks_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/forks","keys_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/teams","hooks_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/hooks","issue_events_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/issues/events{/number}","events_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/events","assignees_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/assignees{/user}","branches_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/branches{/branch}","tags_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/tags","blobs_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/git/refs{/sha}","trees_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/statuses/{sha}","languages_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/languages","stargazers_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/stargazers","contributors_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/contributors","subscribers_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/subscribers","subscription_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/subscription","commits_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/commits{/sha}","git_commits_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/git/commits{/sha}","comments_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/comments{/number}","issue_comment_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/issues/comments{/number}","contents_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/contents/{+path}","compare_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/merges","archive_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/downloads","issues_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/issues{/number}","pulls_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/pulls{/number}","milestones_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/milestones{/number}","notifications_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/labels{/name}","releases_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/releases{/id}","deployments_url":"https://api.github.com/repos/juanpedrojose/rails-jquery-autocomplete/deployments","created_at":"2016-09-06T10:28:00Z","updated_at":"2016-09-06T10:28:02Z","pushed_at":"2016-09-06T14:23:46Z","git_url":"git://github.com/juanpedrojose/rails-jquery-autocomplete.git","ssh_url":"git@github.com:juanpedrojose/rails-jquery-autocomplete.git","clone_url":"https://github.com/juanpedrojose/rails-jquery-autocomplete.git","svn_url":"https://github.com/juanpedrojose/rails-jquery-autocomplete","homepage":"","size":179,"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":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lokalebasen:master","ref":"master","sha":"0aa654c189ec6c741cc9a2c59ee90dd19ccaf0d1","user":{"login":"lokalebasen","id":33633,"avatar_url":"https://avatars.githubusercontent.com/u/33633?v=3","gravatar_id":"","url":"https://api.github.com/users/lokalebasen","html_url":"https://github.com/lokalebasen","followers_url":"https://api.github.com/users/lokalebasen/followers","following_url":"https://api.github.com/users/lokalebasen/following{/other_user}","gists_url":"https://api.github.com/users/lokalebasen/gists{/gist_id}","starred_url":"https://api.github.com/users/lokalebasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokalebasen/subscriptions","organizations_url":"https://api.github.com/users/lokalebasen/orgs","repos_url":"https://api.github.com/users/lokalebasen/repos","events_url":"https://api.github.com/users/lokalebasen/events{/privacy}","received_events_url":"https://api.github.com/users/lokalebasen/received_events","type":"Organization","site_admin":false},"repo":{"id":67504216,"name":"rails-jquery-autocomplete","full_name":"lokalebasen/rails-jquery-autocomplete","owner":{"login":"lokalebasen","id":33633,"avatar_url":"https://avatars.githubusercontent.com/u/33633?v=3","gravatar_id":"","url":"https://api.github.com/users/lokalebasen","html_url":"https://github.com/lokalebasen","followers_url":"https://api.github.com/users/lokalebasen/followers","following_url":"https://api.github.com/users/lokalebasen/following{/other_user}","gists_url":"https://api.github.com/users/lokalebasen/gists{/gist_id}","starred_url":"https://api.github.com/users/lokalebasen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lokalebasen/subscriptions","organizations_url":"https://api.github.com/users/lokalebasen/orgs","repos_url":"https://api.github.com/users/lokalebasen/repos","events_url":"https://api.github.com/users/lokalebasen/events{/privacy}","received_events_url":"https://api.github.com/users/lokalebasen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lokalebasen/rails-jquery-autocomplete","description":"An easy and unobtrusive way to use jQuery's autocomplete with Rails 3 and later.","fork":true,"url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete","forks_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/forks","keys_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/teams","hooks_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/hooks","issue_events_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues/events{/number}","events_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/events","assignees_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/assignees{/user}","branches_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/branches{/branch}","tags_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/tags","blobs_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/git/refs{/sha}","trees_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/statuses/{sha}","languages_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/languages","stargazers_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/stargazers","contributors_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/contributors","subscribers_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/subscribers","subscription_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/subscription","commits_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/commits{/sha}","git_commits_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/git/commits{/sha}","comments_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/comments{/number}","issue_comment_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues/comments{/number}","contents_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/contents/{+path}","compare_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/merges","archive_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/downloads","issues_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues{/number}","pulls_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls{/number}","milestones_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/milestones{/number}","notifications_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/labels{/name}","releases_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/releases{/id}","deployments_url":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/deployments","created_at":"2016-09-06T12:02:32Z","updated_at":"2016-09-06T12:02:34Z","pushed_at":"2016-09-06T14:23:47Z","git_url":"git://github.com/lokalebasen/rails-jquery-autocomplete.git","ssh_url":"git@github.com:lokalebasen/rails-jquery-autocomplete.git","clone_url":"https://github.com/lokalebasen/rails-jquery-autocomplete.git","svn_url":"https://github.com/lokalebasen/rails-jquery-autocomplete","homepage":"","size":188,"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/lokalebasen/rails-jquery-autocomplete/pulls/1"},"html":{"href":"https://github.com/lokalebasen/rails-jquery-autocomplete/pull/1"},"issue":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues/1"},"comments":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lokalebasen/rails-jquery-autocomplete/statuses/3908aa3e21c621b6c6ff99f77d4c15d18aece550"}}}}
{"actor":{"display_login":"juanpedrojose"}}