Module: ActiveRecord::Type::TimeValue

Included in:
DateTime, Time
Defined in:
activerecord/lib/active_record/type/time_value.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#klassObject


4
5
6
# File 'activerecord/lib/active_record/type/time_value.rb', line 4

def klass
  ::Time
end

#type_cast_for_schema(value) ⇒ Object


8
9
10
# File 'activerecord/lib/active_record/type/time_value.rb', line 8

def type_cast_for_schema(value)
  "'#{value.to_s(:db)}'"
end