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

Allow safe sql values to avoid dangerous query method error #1

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

ENewmeration
Copy link
Contributor

json columns require Arel.sql safe specified strings for querying. The mapping of provided columns to strings via to_s was overwriting this specification and so it will always raise an ActiveRecord::UnknownAttributeReference: Dangerous query method error

This honors given column strings/arel safe strings

@fatkodima fatkodima merged commit c870ecb into fatkodima:master Nov 3, 2024
7 checks passed
@fatkodima
Copy link
Owner

Thanks for contributing! ❤️ I am going to make a small change to the gem and will release a new version.

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.

2 participants