Class: Lotus::Model::Mapping::Coercers::Boolean 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.
Boolean coercer
Class Method Summary collapse
-
.load(value) ⇒ Boolean
private
Transform a value from the database into a Boolean, unless nil.
Methods inherited from Coercer
Class Method Details
.load(value) ⇒ Boolean
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 Boolean, unless nil
57 58 59 |
# File 'lib/lotus/model/mapping/coercers.rb', line 57 def self.load(value) Utils::Kernel.Boolean(value) unless value.nil? end |