Sha256: cac74208a20a62210bf2faa87a642b44ea2e08d2c0d6832b6b58c3a2c05cc5b2
Contents?: true
Size: 573 Bytes
Versions: 1
Compression:
Stored size: 573 Bytes
Contents
module ActiveRecord module ConnectionAdapters # This connection adapter does the quoting the way our reporting class should generate it # # class ReportingAdapter < AbstractAdapter def initialize super(nil) end def quoted_true "'1'" end def quoted_false "'0'" end # Quotes a string, escaping any ' (single quote) and \ (backslash) # characters. def quote_string(s) s.gsub(/\\/, '\&\&').gsub(/'/, "\\\\'") # ' (for ruby-mode) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
google_data_source-0.7.6 | lib/reporting/reporting_adapter.rb |