-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current alpha breaks Rails 5 ActiveRecord::Sanitization#quoted_id #712
Closed
Comments
got hit by this too :( |
I got the same error on Rails 4.2.7, after upgrading from 3.5.0 -> 4.0.0. It happens if I pass a model to a dynamic finder method:
Passing a model instead of an id to 'find_by_id' is probably a mistake, but it is something that Rails allows! |
gmcnaughton
pushed a commit
to curious/acts-as-taggable-on
that referenced
this issue
Sep 25, 2016
…oted_id). Removes use of the ActiveRecord::Sanitization#quote_value, which was just a convenience wrapper for connection.quote. Its signature changed in Rails 5.0.0, and it has been removed completely in Rails master. See: - rails/rails@268ee64 - rails/rails@12a42f7
I also got hit by this in a Rails 4.2 upgrade and can confirm that @gmcnaughton's fix is 👍 ...thanks! Is this merge on the team's radar? |
seuros
added a commit
that referenced
this issue
Dec 23, 2016
Fixes #712 (incompatibility with ActiveRecord::Sanitization#quoted_id)
This was referenced Mar 12, 2021
tekniklr
pushed a commit
to tekniklr/acts-as-taggable-on
that referenced
this issue
Mar 19, 2021
…oted_id). Removes use of the ActiveRecord::Sanitization#quote_value, which was just a convenience wrapper for connection.quote. Its signature changed in Rails 5.0.0, and it has been removed completely in Rails master. See: - rails/rails@268ee64 - rails/rails@12a42f7
tekniklr
pushed a commit
to tekniklr/acts-as-taggable-on
that referenced
this issue
Mar 19, 2021
Fixes mbleigh#712 (incompatibility with ActiveRecord::Sanitization#quoted_id)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The changes to core.rb at d7ac3b0 break the quoted_id method in Rails (which, though slated for deprecation, is still used) by putting in a private quote_value method.
Originally reported at rails/rails#22847 but it's not Rails' problem.
Removing the private from acts_as_taggable_on fixes, but there may be a better fix.
The text was updated successfully, but these errors were encountered: