Class: ReeMapper::AbstractType
- Inherits:
-
Object
- Object
- ReeMapper::AbstractType
- Defined in:
- lib/ree_lib/packages/ree_mapper/package/ree_mapper/types/abstract_type.rb
Direct Known Subclasses
ReeEnum::BaseEnumMapper, Any, Bool, Date, DateTime, Float, Integer, Rational, String, Time
Instance Method Summary collapse
-
#db_load_trusted_check(var) ⇒ Object
Ruby expression (as source string) checking that
varalready holds a correctly-typed DB value, so db_load may return it as-is.
Instance Method Details
#db_load_trusted_check(var) ⇒ Object
Ruby expression (as source string) checking that var already holds a
correctly-typed DB value, so db_load may return it as-is. Types that
cannot be skipped (custom types, enums, pg wrappers) return nil. The
expression must accept exactly the values for which this type's db_load
is an identity, or db_load semantics change in performance mode.
7 8 9 |
# File 'lib/ree_lib/packages/ree_mapper/package/ree_mapper/types/abstract_type.rb', line 7 def db_load_trusted_check(var) nil end |