Skip to Content Skip to Search

class ActiveRecord::Type::Time

Inherits From

Public instance methods

Source code GitHub
# File activerecord/lib/active_record/type/time.rb, line 11
def serialize(value)
  case value = super
  when ::Time
    Value.new(value)
  else
    value
  end
end

Definition files