{"action":"created","issue":{"url":"https://api.github.com/repos/dockyard/postgres_ext-serializers/issues/14","labels_url":"https://api.github.com/repos/dockyard/postgres_ext-serializers/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/dockyard/postgres_ext-serializers/issues/14/comments","events_url":"https://api.github.com/repos/dockyard/postgres_ext-serializers/issues/14/events","html_url":"https://github.com/dockyard/postgres_ext-serializers/issues/14","id":46529605,"number":14,"title":"Rails 4.2.0.beta2 compatibility failed","user":{"login":"zhaohanweng","id":1371160,"avatar_url":"https://avatars.githubusercontent.com/u/1371160?v=3","gravatar_id":"","url":"https://api.github.com/users/zhaohanweng","html_url":"https://github.com/zhaohanweng","followers_url":"https://api.github.com/users/zhaohanweng/followers","following_url":"https://api.github.com/users/zhaohanweng/following{/other_user}","gists_url":"https://api.github.com/users/zhaohanweng/gists{/gist_id}","starred_url":"https://api.github.com/users/zhaohanweng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhaohanweng/subscriptions","organizations_url":"https://api.github.com/users/zhaohanweng/orgs","repos_url":"https://api.github.com/users/zhaohanweng/repos","events_url":"https://api.github.com/users/zhaohanweng/events{/privacy}","received_events_url":"https://api.github.com/users/zhaohanweng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2014-10-22T16:20:45Z","updated_at":"2015-01-17T08:02:50Z","closed_at":null,"body":"Using the Rails 4.2.0.beta2, and this gem, anything like: Post.where(id: [1,2,3]) will fail.\r\nEverything is fine when using Rails 4.1.6. Maybe this is a rails error.\r\nHere's the error:\r\n```\r\nLoading development environment (Rails 4.2.0.beta2)\r\n>> Post.where(id: [1,2])\r\n(Object doesn't support #inspect)\r\n=>\r\n>> Post.where(id: [1,2]).take\r\nNoMethodError: undefined method `relation' for #<ActiveRecord::ConnectionAdapters::AbstractAdapter::SQLString:0x007fea84b27bb0>\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/postgres_ext-2.3.0/lib/postgres_ext/arel/visitors/to_sql.rb:7:in `visit_Array'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/reduce.rb:13:in `visit'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:625:in `visit_Arel_Nodes_In'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/reduce.rb:13:in `visit'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:783:in `block in inject_join'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:781:in `each'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:781:in `each_with_index'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:781:in `each'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:781:in `inject'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:781:in `inject_join'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:641:in `visit_Arel_Nodes_And'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/reduce.rb:13:in `visit'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:258:in `block in visit_Arel_Nodes_SelectCore'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:257:in `each'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:257:in `each_with_index'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/arel-6.0.0.beta1/lib/arel/visitors/to_sql.rb:257:in `visit_Arel_Nodes_SelectCore'\r\n... 17 levels...\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.2.0.beta2/lib/rails/commands/console.rb:9:in `start'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:68:in `console'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.2.0.beta2/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/railties-4.2.0.beta2/lib/rails/commands.rb:17:in `<top (required)>'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `block in require'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:248:in `require'\r\n\tfrom /Users/zweng/workspace/testapi/bin/rails:8:in `<top (required)>'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `block in load'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:233:in `load_dependency'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/gems/2.1.0/gems/activesupport-4.2.0.beta2/lib/active_support/dependencies.rb:242:in `load'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom /usr/local/var/rbenv/versions/2.1.3/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'\r\n\tfrom -e:1:in `<main>'>>\r\n```"},"comment":{"url":"https://api.github.com/repos/dockyard/postgres_ext-serializers/issues/comments/70358776","html_url":"https://github.com/dockyard/postgres_ext-serializers/issues/14#issuecomment-70358776","issue_url":"https://api.github.com/repos/dockyard/postgres_ext-serializers/issues/14","id":70358776,"user":{"login":"mcm-ham","id":8325692,"avatar_url":"https://avatars.githubusercontent.com/u/8325692?v=3","gravatar_id":"","url":"https://api.github.com/users/mcm-ham","html_url":"https://github.com/mcm-ham","followers_url":"https://api.github.com/users/mcm-ham/followers","following_url":"https://api.github.com/users/mcm-ham/following{/other_user}","gists_url":"https://api.github.com/users/mcm-ham/gists{/gist_id}","starred_url":"https://api.github.com/users/mcm-ham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcm-ham/subscriptions","organizations_url":"https://api.github.com/users/mcm-ham/orgs","repos_url":"https://api.github.com/users/mcm-ham/repos","events_url":"https://api.github.com/users/mcm-ham/events{/privacy}","received_events_url":"https://api.github.com/users/mcm-ham/received_events","type":"User","site_admin":false},"created_at":"2015-01-17T08:02:50Z","updated_at":"2015-01-17T08:02:50Z","body":"I've updated the commit to replace bound values but ideally would like to look for a way to get the framework to pass in sql parameters than manually doing it in string."}}