Sha256: a7426f4558756039ca3b972d809cda99e9b9f5b992a3d3030546a1822a45aa91
Contents?: true
Size: 283 Bytes
Versions: 2
Compression:
Stored size: 283 Bytes
Contents
module Mysql2QueryFilter::Mysql2ClientExt def self.included(klass) klass.class_eval do alias query_without_filter query def query(*args) sql = args.first Mysql2QueryFilter.filter(sql) query_without_filter(*args) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mysql2_query_filter-0.0.2 | lib/mysql2_query_filter/mysql2_client_ext.rb |
mysql2_query_filter-0.0.1 | lib/mysql2_query_filter/mysql2_client_ext.rb |