class
ActiveModel::Type::String
v7.1.3.4 -
Show latest stable
- Superclass: ActiveModel::Type::ImmutableString
Active 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.
Files
- activemodel/lib/active_model/type/string.rb