Class: ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::DateTime

Inherits:
DateTime
  • Object
show all
Includes:
DataCompat
Defined in:
lib/active_record/connection_adapters/sqlserver/core_ext/date_time.rb

Overview

Create our own DateTime class so that we can format strings properly and still have a DateTime class for the jdbc driver to work with

Instance Attribute Summary

Attributes included from DataCompat

#_sql_type

Class Method Summary collapse

Methods included from DataCompat

#quoted, #to_s

Class Method Details

._jd_with_sql_type(value, type) ⇒ Object



29
30
31
# File 'lib/active_record/connection_adapters/sqlserver/core_ext/date_time.rb', line 29

def self._jd_with_sql_type(value, type)
  jd(value.jd).tap { |t|  t._sql_type = type }
end