Class: Lotus::Model::Mapping::Coercers::DateTime Private
- Defined in:
- lib/lotus/model/mapping/coercers.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
DateTime coercer
Class Method Summary collapse
-
.load(value) ⇒ DateTime
private
Transform a value from the database into a DateTime, unless nil.
Methods inherited from Coercer
Class Method Details
.load(value) ⇒ DateTime
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Transform a value from the database into a DateTime, unless nil
107 108 109 |
# File 'lib/lotus/model/mapping/coercers.rb', line 107 def self.load(value) Utils::Kernel.DateTime(value) unless value.nil? end |