{"action":"opened","issue":{"url":"https://api.github.com/repos/rails/rails/issues/22847","labels_url":"https://api.github.com/repos/rails/rails/issues/22847/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/22847/comments","events_url":"https://api.github.com/repos/rails/rails/issues/22847/events","html_url":"https://github.com/rails/rails/issues/22847","id":124350198,"number":22847,"title":"quoted_id failing","user":{"login":"ffmike","id":2514,"avatar_url":"https://avatars.githubusercontent.com/u/2514?v=3","gravatar_id":"","url":"https://api.github.com/users/ffmike","html_url":"https://github.com/ffmike","followers_url":"https://api.github.com/users/ffmike/followers","following_url":"https://api.github.com/users/ffmike/following{/other_user}","gists_url":"https://api.github.com/users/ffmike/gists{/gist_id}","starred_url":"https://api.github.com/users/ffmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffmike/subscriptions","organizations_url":"https://api.github.com/users/ffmike/orgs","repos_url":"https://api.github.com/users/ffmike/repos","events_url":"https://api.github.com/users/ffmike/events{/privacy}","received_events_url":"https://api.github.com/users/ffmike/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-30T13:50:01Z","updated_at":"2015-12-30T13:50:01Z","closed_at":null,"body":"Rails 4.2.5:\r\n[1] pry(main)> r = Restaurant.first\r\n[2] pry(main)> r.quoted_id\r\n=> \"2\"\r\n\r\nRails 5.0:\r\n[1] pry(main)> r = Restaurant.first\r\n[2] pry(main)> r.quoted_id\r\nNoMethodError: private method `quote_value' called for #<Class:0x007f801cb24ca8>\r\nDid you mean?  quote_bound_value\r\n\r\nquoted_id is marked \"# TODO: Deprecate this\" in sanitization.rb, but it's still called internally in connection_adapters/abstract/quoting.rb\r\n\r\nI can \"fix\" by patching the definition of quoted_id:\r\n\r\n    def quoted_id\r\n      self.class.send(:quote_value, @attributes[self.class.primary_key].value_for_database)\r\n    end\r\n\r\nBut I doubt that's the right fix given the underlying changes in arel."}}