{"action":"created","issue":{"url":"https://api.github.com/repos/DockYard/postgres_ext/issues/180","repository_url":"https://api.github.com/repos/DockYard/postgres_ext","labels_url":"https://api.github.com/repos/DockYard/postgres_ext/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/DockYard/postgres_ext/issues/180/comments","events_url":"https://api.github.com/repos/DockYard/postgres_ext/issues/180/events","html_url":"https://github.com/DockYard/postgres_ext/issues/180","id":134752486,"number":180,"title":"undefined method `build_where` in Rails 5.0.0.beta2","user":{"login":"robotvert","id":514215,"avatar_url":"https://avatars.githubusercontent.com/u/514215?v=3","gravatar_id":"","url":"https://api.github.com/users/robotvert","html_url":"https://github.com/robotvert","followers_url":"https://api.github.com/users/robotvert/followers","following_url":"https://api.github.com/users/robotvert/following{/other_user}","gists_url":"https://api.github.com/users/robotvert/gists{/gist_id}","starred_url":"https://api.github.com/users/robotvert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotvert/subscriptions","organizations_url":"https://api.github.com/users/robotvert/orgs","repos_url":"https://api.github.com/users/robotvert/repos","events_url":"https://api.github.com/users/robotvert/events{/privacy}","received_events_url":"https://api.github.com/users/robotvert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-02-19T02:13:46Z","updated_at":"2016-09-04T15:58:06Z","closed_at":null,"body":"Hi,\r\n\r\nThe current master doesn't work with Rails 5.0.0.beta2.\r\n\r\nGiven a `Project` model containing a `category_ids` integer array, here's what happens when using `any` (edited for brevity):\r\n\r\n```\r\nProject.where.any(category_ids: 1).count\r\n\r\nNoMethodError:   Project Load (40.9ms)  SELECT \"projects\".* FROM \"projects\"\r\nundefined method `build_where' for #<Project::ActiveRecord_Relation:0x007fd6dd05bd40>\r\nDid you mean?  build_with\r\n  from (...)/activerecord-5.0.0.beta2/lib/active_record/relation/delegation.rb:123:in `method_missing'\r\n  from (...)/activerecord-5.0.0.beta2/lib/active_record/relation/delegation.rb:93:in `method_missing'\r\n  from (...)/postgres_ext/lib/postgres_ext/active_record/relation/query_methods.rb:86:in `build_where_chain'\r\n  from (...)/postgres_ext/lib/postgres_ext/active_record/relation/query_methods.rb:104:in `equality_to_function'\r\n  from (...)/postgres_ext/lib/postgres_ext/active_record/relation/query_methods.rb:41:in `any'\r\n```\r\n\r\n\r\n\r\nNot related to this issue but FYI using Ruby 2.3.0 it outputs warnings:\r\n\r\n```\r\nalias_method_chain is deprecated. Please, use Module#prepend instead. \r\nFrom module, you can access the original method using super.\r\n```\r\nfrom [this line in relation/query_methods.rb](https://github.com/DockYard/postgres_ext/blob/master/lib/postgres_ext/active_record/relation/query_methods.rb#L250)"},"comment":{"url":"https://api.github.com/repos/DockYard/postgres_ext/issues/comments/244611365","html_url":"https://github.com/DockYard/postgres_ext/issues/180#issuecomment-244611365","issue_url":"https://api.github.com/repos/DockYard/postgres_ext/issues/180","id":244611365,"user":{"login":"shmay","id":74591,"avatar_url":"https://avatars.githubusercontent.com/u/74591?v=3","gravatar_id":"","url":"https://api.github.com/users/shmay","html_url":"https://github.com/shmay","followers_url":"https://api.github.com/users/shmay/followers","following_url":"https://api.github.com/users/shmay/following{/other_user}","gists_url":"https://api.github.com/users/shmay/gists{/gist_id}","starred_url":"https://api.github.com/users/shmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shmay/subscriptions","organizations_url":"https://api.github.com/users/shmay/orgs","repos_url":"https://api.github.com/users/shmay/repos","events_url":"https://api.github.com/users/shmay/events{/privacy}","received_events_url":"https://api.github.com/users/shmay/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T15:58:06Z","updated_at":"2016-09-04T15:58:06Z","body":"If anyone just wants to use CTEs in Rails 5, I ripped out the code for that and put it in a separate gem: https://github.com/shmay/ctes_in_my_pg"}}
{"actor":{"display_login":"shmay"}}