class String
Ruby on Rails edge
Since v5.0.7.2Active Model String Type
Attribute type for strings. It is registered under the :string key.
This class is a specialization of ActiveModel::Type::ImmutableString. It performs coercion in the same way, and can be configured in the same way. However, it accounts for mutable strings, so dirty tracking can properly check if a string has changed.
Inherits from
Methods (defined here)
Private methods (1)
Show private methods Implementation detail — not part of the public API.
Methods (inherited)
From ActiveModel::Type::ImmutableString
(5)
- # as_schema_json
- # init_from_schema_json
- # serialize
- # type
- self. new