class StateGate::Type
Description¶ ↑
ActiveRecord::Type to cast a model attribute as a StateGate
, mapping to a string database column.
Ensures that any string written to, or read from, the database is a valid state
, otherwise it raises an exception.
This class is has an internal API for ActiveRecord and is not intended for public use.