I need to use sanitization in Jobs, so i wrote method
def sanitized_sql_statement(query)
ActiveRecord::Base.send(
:sanitize_sql_array,
query
)
end
I have 2 different job files. Where I should place this method and how to use it from Jobs?