Skip to content
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

Fixes #712 (incompatibility with ActiveRecord::Sanitization#quoted_id) #782

Merged
merged 2 commits into from
Dec 23, 2016

Conversation

gmcnaughton
Copy link
Contributor

@gmcnaughton gmcnaughton commented Sep 25, 2016

Removes use of the ActiveRecord::Sanitization#quote_value, which was
a convenience wrapper for self.class.connection.quote.

The convenience method's signature changed in Rails 5.0.0, and it has now been removed completely from Rails master.

Fixes #712

See:

Gordon McNaughton added 2 commits September 25, 2016 15:10
…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
@pwim
Copy link

pwim commented Oct 13, 2016

My application was also affected by this issue. This PR solves it for me, and none of my application's specs failed, so it looks like it doesn't introduce any regressions. The only thing I could see adding to it is a spec that could prevent this regression from happening again in the future.

@seuros seuros merged commit f55b20e into mbleigh:master Dec 23, 2016
@seuros
Copy link
Collaborator

seuros commented Dec 23, 2016

@gmcnaughton Thank you

@gmcnaughton
Copy link
Contributor Author

Thanks @seuros, happy to help!

tekniklr pushed a commit to tekniklr/acts-as-taggable-on that referenced this pull request 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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants