instance method serializable?

Ruby on Rails 7.2.3

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

serializable?(value)

Returns true if this type can convert value to a type that is usable by the database. For example a boolean type can return true if the value parameter is a Ruby boolean, but may return false if the value parameter is some other object.

Parameters

value req
Source
# File activemodel/lib/active_model/type/value.rb, line 28
      def serializable?(value)
        true
      end

Defined in activemodel/lib/active_model/type/value.rb line 28 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::Type::Value

Type at least 2 characters to search.

↑↓ navigate · open · esc close