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

Version Path
crypt_keeper-0.13.1 lib/crypt_keeper/helper.rb
crypt_keeper-0.13.0 lib/crypt_keeper/helper.rb
crypt_keeper-0.12.0 lib/crypt_keeper/helper.rb
crypt_keeper-0.10.0.pre lib/crypt_keeper/helper.rb
crypt_keeper-0.9.0.pre lib/crypt_keeper/helper.rb
crypt_keeper-0.8.0 lib/crypt_keeper/helper.rb
crypt_keeper-0.7.0 lib/crypt_keeper/helper.rb
crypt_keeper-0.6.1 lib/crypt_keeper/helper.rb
crypt_keeper-0.6.0 lib/crypt_keeper/helper.rb