问题
I'm writing a script to build some sql queries and I want to sanitize the query before I execute it. When i call sanitize_sql_array on the array I hit an exception, 'undefined method 'sanitize_sql_array''. How do utilize that active record function without calling from within a model?
来源:https://stackoverflow.com/questions/30808148/running-sanitize-sql-array-outside-of-a-model