Class: ReeMapper::AbstractType

Inherits:
Object
  • Object
show all
Defined in:
lib/ree_lib/packages/ree_mapper/package/ree_mapper/types/abstract_type.rb

Instance Method Summary collapse

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