{"action":"created","comment":{"url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/comments/90161941","pull_request_review_id":10684937,"id":90161941,"diff_hunk":"@@ -0,0 +1,17 @@\n+class Api::V1::Customers::SearchController < ApplicationController\n+\n+  def show\n+    render json: Customer.find_by(search_params)\n+  end\n+\n+  def index\n+    render json: Customer.where(search_params)\n+  end\n+\n+  private\n+\n+  def search_params\n+    params.permit(:id, :first_name, :last_name, :created_at, :updated_at)","path":"app/controllers/api/v1/customers/search_controller.rb","position":14,"original_position":14,"commit_id":"422c778e82dd6ab6adda4fe24ce0e86a8c34c099","original_commit_id":"422c778e82dd6ab6adda4fe24ce0e86a8c34c099","user":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2016-11-30T03:11:59Z","updated_at":"2016-11-30T03:11:59Z","html_url":"https://github.com/bradgreen3/rails_engine/pull/12#discussion_r90161941","pull_request_url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/comments/90161941"},"html":{"href":"https://github.com/bradgreen3/rails_engine/pull/12#discussion_r90161941"},"pull_request":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12","id":95820031,"html_url":"https://github.com/bradgreen3/rails_engine/pull/12","diff_url":"https://github.com/bradgreen3/rails_engine/pull/12.diff","patch_url":"https://github.com/bradgreen3/rails_engine/pull/12.patch","issue_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues/12","number":12,"state":"open","locked":false,"title":"Add multifinders search controllers for all models","user":{"login":"MDes41","id":8398525,"avatar_url":"https://avatars.githubusercontent.com/u/8398525?v=3","gravatar_id":"","url":"https://api.github.com/users/MDes41","html_url":"https://github.com/MDes41","followers_url":"https://api.github.com/users/MDes41/followers","following_url":"https://api.github.com/users/MDes41/following{/other_user}","gists_url":"https://api.github.com/users/MDes41/gists{/gist_id}","starred_url":"https://api.github.com/users/MDes41/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDes41/subscriptions","organizations_url":"https://api.github.com/users/MDes41/orgs","repos_url":"https://api.github.com/users/MDes41/repos","events_url":"https://api.github.com/users/MDes41/events{/privacy}","received_events_url":"https://api.github.com/users/MDes41/received_events","type":"User","site_admin":false},"body":"Add customer, merchants, transactions, invoices, invoice_items, and items all search controllers with spec test.","created_at":"2016-11-30T03:09:38Z","updated_at":"2016-11-30T03:11:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7eb0b1cebe1c30b6a3aba1816f724ee87055c9a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12/commits","review_comments_url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12/comments","review_comment_url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues/12/comments","statuses_url":"https://api.github.com/repos/bradgreen3/rails_engine/statuses/422c778e82dd6ab6adda4fe24ce0e86a8c34c099","head":{"label":"bradgreen3:multifinders_matt","ref":"multifinders_matt","sha":"422c778e82dd6ab6adda4fe24ce0e86a8c34c099","user":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"repo":{"id":75023855,"name":"rails_engine","full_name":"bradgreen3/rails_engine","owner":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bradgreen3/rails_engine","description":null,"fork":false,"url":"https://api.github.com/repos/bradgreen3/rails_engine","forks_url":"https://api.github.com/repos/bradgreen3/rails_engine/forks","keys_url":"https://api.github.com/repos/bradgreen3/rails_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bradgreen3/rails_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bradgreen3/rails_engine/teams","hooks_url":"https://api.github.com/repos/bradgreen3/rails_engine/hooks","issue_events_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues/events{/number}","events_url":"https://api.github.com/repos/bradgreen3/rails_engine/events","assignees_url":"https://api.github.com/repos/bradgreen3/rails_engine/assignees{/user}","branches_url":"https://api.github.com/repos/bradgreen3/rails_engine/branches{/branch}","tags_url":"https://api.github.com/repos/bradgreen3/rails_engine/tags","blobs_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bradgreen3/rails_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/bradgreen3/rails_engine/languages","stargazers_url":"https://api.github.com/repos/bradgreen3/rails_engine/stargazers","contributors_url":"https://api.github.com/repos/bradgreen3/rails_engine/contributors","subscribers_url":"https://api.github.com/repos/bradgreen3/rails_engine/subscribers","subscription_url":"https://api.github.com/repos/bradgreen3/rails_engine/subscription","commits_url":"https://api.github.com/repos/bradgreen3/rails_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/bradgreen3/rails_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/bradgreen3/rails_engine/contents/{+path}","compare_url":"https://api.github.com/repos/bradgreen3/rails_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bradgreen3/rails_engine/merges","archive_url":"https://api.github.com/repos/bradgreen3/rails_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bradgreen3/rails_engine/downloads","issues_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues{/number}","pulls_url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/bradgreen3/rails_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/bradgreen3/rails_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bradgreen3/rails_engine/labels{/name}","releases_url":"https://api.github.com/repos/bradgreen3/rails_engine/releases{/id}","deployments_url":"https://api.github.com/repos/bradgreen3/rails_engine/deployments","created_at":"2016-11-28T23:37:33Z","updated_at":"2016-11-28T23:38:39Z","pushed_at":"2016-11-30T03:11:17Z","git_url":"git://github.com/bradgreen3/rails_engine.git","ssh_url":"git@github.com:bradgreen3/rails_engine.git","clone_url":"https://github.com/bradgreen3/rails_engine.git","svn_url":"https://github.com/bradgreen3/rails_engine","homepage":null,"size":581,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"bradgreen3:development","ref":"development","sha":"851f79bcb9256a592c98e0b60cde6b73f60d713d","user":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"repo":{"id":75023855,"name":"rails_engine","full_name":"bradgreen3/rails_engine","owner":{"login":"bradgreen3","id":17207274,"avatar_url":"https://avatars.githubusercontent.com/u/17207274?v=3","gravatar_id":"","url":"https://api.github.com/users/bradgreen3","html_url":"https://github.com/bradgreen3","followers_url":"https://api.github.com/users/bradgreen3/followers","following_url":"https://api.github.com/users/bradgreen3/following{/other_user}","gists_url":"https://api.github.com/users/bradgreen3/gists{/gist_id}","starred_url":"https://api.github.com/users/bradgreen3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradgreen3/subscriptions","organizations_url":"https://api.github.com/users/bradgreen3/orgs","repos_url":"https://api.github.com/users/bradgreen3/repos","events_url":"https://api.github.com/users/bradgreen3/events{/privacy}","received_events_url":"https://api.github.com/users/bradgreen3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bradgreen3/rails_engine","description":null,"fork":false,"url":"https://api.github.com/repos/bradgreen3/rails_engine","forks_url":"https://api.github.com/repos/bradgreen3/rails_engine/forks","keys_url":"https://api.github.com/repos/bradgreen3/rails_engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bradgreen3/rails_engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bradgreen3/rails_engine/teams","hooks_url":"https://api.github.com/repos/bradgreen3/rails_engine/hooks","issue_events_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues/events{/number}","events_url":"https://api.github.com/repos/bradgreen3/rails_engine/events","assignees_url":"https://api.github.com/repos/bradgreen3/rails_engine/assignees{/user}","branches_url":"https://api.github.com/repos/bradgreen3/rails_engine/branches{/branch}","tags_url":"https://api.github.com/repos/bradgreen3/rails_engine/tags","blobs_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bradgreen3/rails_engine/statuses/{sha}","languages_url":"https://api.github.com/repos/bradgreen3/rails_engine/languages","stargazers_url":"https://api.github.com/repos/bradgreen3/rails_engine/stargazers","contributors_url":"https://api.github.com/repos/bradgreen3/rails_engine/contributors","subscribers_url":"https://api.github.com/repos/bradgreen3/rails_engine/subscribers","subscription_url":"https://api.github.com/repos/bradgreen3/rails_engine/subscription","commits_url":"https://api.github.com/repos/bradgreen3/rails_engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/bradgreen3/rails_engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/bradgreen3/rails_engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/bradgreen3/rails_engine/contents/{+path}","compare_url":"https://api.github.com/repos/bradgreen3/rails_engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bradgreen3/rails_engine/merges","archive_url":"https://api.github.com/repos/bradgreen3/rails_engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bradgreen3/rails_engine/downloads","issues_url":"https://api.github.com/repos/bradgreen3/rails_engine/issues{/number}","pulls_url":"https://api.github.com/repos/bradgreen3/rails_engine/pulls{/number}","milestones_url":"https://api.github.com/repos/bradgreen3/rails_engine/milestones{/number}","notifications_url":"https://api.github.com/repos/bradgreen3/rails_engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bradgreen3/rails_engine/labels{/name}","releases_url":"https://api.github.com/repos/bradgreen3/rails_engine/releases{/id}","deployments_url":"https://api.github.com/repos/bradgreen3/rails_engine/deployments","created_at":"2016-11-28T23:37:33Z","updated_at":"2016-11-28T23:38:39Z","pushed_at":"2016-11-30T03:11:17Z","git_url":"git://github.com/bradgreen3/rails_engine.git","ssh_url":"git@github.com:bradgreen3/rails_engine.git","clone_url":"https://github.com/bradgreen3/rails_engine.git","svn_url":"https://github.com/bradgreen3/rails_engine","homepage":null,"size":581,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12"},"html":{"href":"https://github.com/bradgreen3/rails_engine/pull/12"},"issue":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/issues/12"},"comments":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/bradgreen3/rails_engine/statuses/422c778e82dd6ab6adda4fe24ce0e86a8c34c099"}}}}
{"actor":{"display_login":"bradgreen3"}}