Sha256: 58f5cb6f24c5f87b85101f9e849da77d21c68c11cf32eeb9f4246b7d1dfa851f

Contents?: true

Size: 178 Bytes

Versions: 8

Compression:

Stored size: 178 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

8 entries across 8 versions & 1 rubygems

Version Path
dino_utils-0.1.21 lib/tn.rb
dino_utils-0.1.20 lib/tn.rb
dino_utils-0.1.19 lib/tn.rb
dino_utils-0.1.18 lib/tn.rb
dino_utils-0.1.16 lib/tn.rb
dino_utils-0.1.15 lib/tn.rb
dino_utils-0.1.14 lib/tn.rb
dino_utils-0.1.13 lib/tn.rb