ActiveModel
ActiveModel::Serialization + Serializers::JSON.
as_json/serializable_hash read the typed attribute set; only/except
filter attributes. The methods: option needs runtime method dispatch
in Ruby — the port requires the callable methods to be declared up
front with serialize_method :shout (compile-time dispatch table).
from_json goes through mass assignment: untyped attributes keep raw JSON scalars ("5" stays String — quirk pinned by oracle ser_from_json_types), typed attributes cast (ser_from_json_typed).
Constants
VERSION = "8.1.4-cr.0"
Class methods
Nested types
- ActiveModel::API
- ActiveModel::Access
- ActiveModel::AttributeAssignment
- ActiveModel::Attributes
- ActiveModel::Callbacks
- ActiveModel::Conversion
- ActiveModel::Dirty
- ActiveModel::EachValidator
- ActiveModel::Error
- ActiveModel::Errors
- ActiveModel::ForbiddenAttributesError
- ActiveModel::ForbiddenAttributesProtection
- ActiveModel::MassAssignmentParameters
- ActiveModel::Model
- ActiveModel::Name
- ActiveModel::Naming
- ActiveModel::SecurePassword
- ActiveModel::Serialization
- ActiveModel::Serializers
- ActiveModel::StrictValidationFailed
- ActiveModel::Translation
- ActiveModel::Type
- ActiveModel::UnknownAttributeError
- ActiveModel::ValidationError
- ActiveModel::Validations
- ActiveModel::Value