Sha256: f9ded88b4aec0a1fdacc737ef616e51e3f6fe965e9174937b9e8a47bb57e8db2
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
module PedantMysql2 class << self attr_accessor :on_warning def silence_warnings previous_value = Thread.current[:silence_warnings] Thread.current[:silence_warnings] = true yield ensure Thread.current[:silence_warnings] = previous_value end def silence_warnings? Thread.current[:silence_warnings] end end self.on_warning = lambda{ |*| } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
activerecord-pedantmysql2-adapter-0.1.1 | lib/pedant_mysql2.rb |
activerecord-pedantmysql2-adapter-0.1.0 | lib/pedant_mysql2.rb |