Sha256: 7e40cd49dacc75506c78dfcf420e1deb7607f2902892d95ddaf4dcd1da936159
Contents?: true
Size: 322 Bytes
Versions: 9
Compression:
Stored size: 322 Bytes
Contents
module CryptKeeper module Helper module SQL private # Private: Sanitize an sql query and then execute it def escape_and_execute_sql(query) query = ::ActiveRecord::Base.send :sanitize_sql_array, query ::ActiveRecord::Base.connection.execute(query).first end end end end
Version data entries
9 entries across 9 versions & 1 rubygems