Sha256: 6fcdad15d6fa1ebef8dd3bdb75b7e00c79f84d368cc3ef77899f4a2f99893fd1

Contents?: true

Size: 349 Bytes

Versions: 3

Compression:

Stored size: 349 Bytes

Contents

module Sequel
  module ActiveRecordConnection
    module Jdbc
      def self.extended(db)
        if db.timezone == :utc && db.respond_to?(:current_timestamp_utc)
          db.current_timestamp_utc = true
        end
      end

      def synchronize(*)
        super do |conn|
          yield conn.connection
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sequel-activerecord_connection-1.1.0 lib/sequel/extensions/activerecord_connection/jdbc.rb
sequel-activerecord_connection-1.0.1 lib/sequel/extensions/activerecord_connection/jdbc.rb
sequel-activerecord_connection-1.0.0 lib/sequel/extensions/activerecord_connection/jdbc.rb