Sha256: 8c1cef6c0b6f5824d4d01cd055908fb62bc1c384e3b828efe5f573eca4537256

Contents?: true

Size: 179 Bytes

Versions: 3

Compression:

Stored size: 179 Bytes

Contents

module TN

  def self.execute_sql sql, *placeholders
    ActiveRecord::Base.connection.select_value(ActiveRecord::Base.send(:sanitize_sql_array, [sql, *placeholders]))
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dino_utils-0.1.12 lib/tn.rb
dino_utils-0.1.11 lib/tn.rb
dino_utils-0.1.10 lib/tn.rb