{"action":"created","issue":{"url":"https://api.github.com/repos/sferik/rails_admin/issues/2359","labels_url":"https://api.github.com/repos/sferik/rails_admin/issues/2359/labels{/name}","comments_url":"https://api.github.com/repos/sferik/rails_admin/issues/2359/comments","events_url":"https://api.github.com/repos/sferik/rails_admin/issues/2359/events","html_url":"https://github.com/sferik/rails_admin/issues/2359","id":95119130,"number":2359,"title":" Search in rails admin not working on associated models","user":{"login":"aravindgdf22","id":13232066,"avatar_url":"https://avatars.githubusercontent.com/u/13232066?v=3","gravatar_id":"","url":"https://api.github.com/users/aravindgdf22","html_url":"https://github.com/aravindgdf22","followers_url":"https://api.github.com/users/aravindgdf22/followers","following_url":"https://api.github.com/users/aravindgdf22/following{/other_user}","gists_url":"https://api.github.com/users/aravindgdf22/gists{/gist_id}","starred_url":"https://api.github.com/users/aravindgdf22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aravindgdf22/subscriptions","organizations_url":"https://api.github.com/users/aravindgdf22/orgs","repos_url":"https://api.github.com/users/aravindgdf22/repos","events_url":"https://api.github.com/users/aravindgdf22/events{/privacy}","received_events_url":"https://api.github.com/users/aravindgdf22/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-15T06:36:33Z","updated_at":"2015-07-15T17:18:13Z","closed_at":null,"body":"\r\n\r\nWhen I do a search on the table the query only works on email not on username and full name of the user and guest user tables which is basically an associated model for the invited email model.\r\n```\r\nconfig.model InvitedEmail do\r\n  list do\r\n    field :id do\r\n      searchable false\r\n    end\r\n    field :email do\r\n      searchable :email\r\n    end \r\n    field :user do\r\n      searchable [:username, :full_name]\r\n    end\r\n    field :guest_user do\r\n      searchable [:username, :full_name]\r\n    end\r\n  end\r\nend\r\n```\r\nHere is the log on searching in the list:\r\n```\r\nParameters: {\"model_name\"=>\"invited_email\", \"utf8\"=>\"✓\", \"query\"=>\"asd\", \"_pjax\"=>\"[data-pjax-container]\"} (pid:54610)\r\nInvitedEmail Load (4.4ms)  SELECT  `invited_emails`.* FROM `invited_emails` WHERE ((LOWER(invited_emails.email) LIKE '%asd%'))  ORDER BY invited_emails.id desc LIMIT 20 OFFSET 0 (pid:54610)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sferik/rails_admin/issues/comments/121684406","html_url":"https://github.com/sferik/rails_admin/issues/2359#issuecomment-121684406","issue_url":"https://api.github.com/repos/sferik/rails_admin/issues/2359","id":121684406,"user":{"login":"fmh","id":56861,"avatar_url":"https://avatars.githubusercontent.com/u/56861?v=3","gravatar_id":"","url":"https://api.github.com/users/fmh","html_url":"https://github.com/fmh","followers_url":"https://api.github.com/users/fmh/followers","following_url":"https://api.github.com/users/fmh/following{/other_user}","gists_url":"https://api.github.com/users/fmh/gists{/gist_id}","starred_url":"https://api.github.com/users/fmh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmh/subscriptions","organizations_url":"https://api.github.com/users/fmh/orgs","repos_url":"https://api.github.com/users/fmh/repos","events_url":"https://api.github.com/users/fmh/events{/privacy}","received_events_url":"https://api.github.com/users/fmh/received_events","type":"User","site_admin":false},"created_at":"2015-07-15T17:18:13Z","updated_at":"2015-07-15T17:18:13Z","body":"Main topic #1434 and same issue #2346 "}}