ActiveModel Type Binary class Binary Ruby on Rails edge Since v7.1.6 Available in: v7.1.6 v7.2.4 v8.0.5.1 v8.1.4 edge Compare with: (choosing a version navigates to the comparison) Choose a version v7.1.6 · changed v7.2.4 · changed v8.0.5.1 · changed v8.1.4 · changed Active Model Binary Type Attribute type for representation of binary data. This type is registered under the :binary key. Non-string values are coerced to strings using their to_s method. Inherits from Value Methods (defined here) # binary? # cast # changed_in_place? # serialize # type On this page Methods Support Bug Reports can be filed for the Ruby on Rails project on GitHub. Feature requests should be discussed on the rubyonrails-core forum. License Released under the MIT license.