instance method read_attribute_for_serialization

Ruby on Rails 7.2.3

Since v7.1.6 Private

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

read_attribute_for_serialization(key)

No documentation comment.

Parameters

key req
Source
# File actiontext/lib/action_text/attachable.rb, line 148
      def read_attribute_for_serialization(key)
        if key == "attachable_sgid"
          persisted? ? super : nil
        else
          super
        end
      end

Defined in actiontext/lib/action_text/attachable.rb line 148 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionText::Attachable

Type at least 2 characters to search.

↑↓ navigate · open · esc close