{"action":"created","issue":{"url":"https://api.github.com/repos/activerecord-hackery/squeel/issues/358","labels_url":"https://api.github.com/repos/activerecord-hackery/squeel/issues/358/labels{/name}","comments_url":"https://api.github.com/repos/activerecord-hackery/squeel/issues/358/comments","events_url":"https://api.github.com/repos/activerecord-hackery/squeel/issues/358/events","html_url":"https://github.com/activerecord-hackery/squeel/pull/358","id":55511353,"number":358,"title":"Fix NoMethodError for Arel::Nodes::BindParam","user":{"login":"estum","id":1584968,"avatar_url":"https://avatars.githubusercontent.com/u/1584968?v=3","gravatar_id":"","url":"https://api.github.com/users/estum","html_url":"https://github.com/estum","followers_url":"https://api.github.com/users/estum/followers","following_url":"https://api.github.com/users/estum/following{/other_user}","gists_url":"https://api.github.com/users/estum/gists{/gist_id}","starred_url":"https://api.github.com/users/estum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/estum/subscriptions","organizations_url":"https://api.github.com/users/estum/orgs","repos_url":"https://api.github.com/users/estum/repos","events_url":"https://api.github.com/users/estum/events{/privacy}","received_events_url":"https://api.github.com/users/estum/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T17:27:35Z","updated_at":"2015-02-05T14:44:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/activerecord-hackery/squeel/pulls/358","html_url":"https://github.com/activerecord-hackery/squeel/pull/358","diff_url":"https://github.com/activerecord-hackery/squeel/pull/358.diff","patch_url":"https://github.com/activerecord-hackery/squeel/pull/358.patch"},"body":"Fix raising \"NoMethodError: undefined method val for Arel::Nodes::BindParam\" in `where_values_hash_with_squeel` method. \r\nI found that it tries `Arel::Nodes::Unary` instance to call missing `val` method instead of `value` (https://github.com/rails/arel/blob/master/lib/arel/nodes/unary.rb). \r\nBug detected when trying to build new record on `has_many` polymorphic association.\r\n\r\nTested only with postgresql, sorry."},"comment":{"url":"https://api.github.com/repos/activerecord-hackery/squeel/issues/comments/73056954","html_url":"https://github.com/activerecord-hackery/squeel/pull/358#issuecomment-73056954","issue_url":"https://api.github.com/repos/activerecord-hackery/squeel/issues/358","id":73056954,"user":{"login":"bigxiang","id":289683,"avatar_url":"https://avatars.githubusercontent.com/u/289683?v=3","gravatar_id":"","url":"https://api.github.com/users/bigxiang","html_url":"https://github.com/bigxiang","followers_url":"https://api.github.com/users/bigxiang/followers","following_url":"https://api.github.com/users/bigxiang/following{/other_user}","gists_url":"https://api.github.com/users/bigxiang/gists{/gist_id}","starred_url":"https://api.github.com/users/bigxiang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigxiang/subscriptions","organizations_url":"https://api.github.com/users/bigxiang/orgs","repos_url":"https://api.github.com/users/bigxiang/repos","events_url":"https://api.github.com/users/bigxiang/events{/privacy}","received_events_url":"https://api.github.com/users/bigxiang/received_events","type":"User","site_admin":false},"created_at":"2015-02-05T14:44:49Z","updated_at":"2015-02-05T14:44:49Z","body":"@estum Thanks for your PR. But I couldn't reproduce the error you mentioned with your test case. Could you run it against the latest master branch and confirm it?"}}