Referencing the methods in this doc primarily https://api.rubyonrails.org/classes/ActiveRecord/Sanitization/ClassMethods.html
I have a sql, id = :id, and the user input for the binded variables that are coming in that I need to sanitize. sanitize_sql_for_conditions works perfectly for my situation. However, it seems that it can only be called through the method or through an active DB connection. Is there a way to the the sanitize_sql_* methods without a model or db connection? I know ActiveRecord::Base::sanitize_sql works, but I would prefer not to use a deprecated method.
Currently on rails 5.2