running sanitize_sql_array outside of a model

3.5k views Asked by At

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?

0

There are 0 answers