instance method
read_attribute_for_serialization
Ruby on Rails 7.1.6
Since v7.1.6 PrivateSignature
read_attribute_for_serialization(key)
No documentation comment.
Parameters
-
keyreq
Source
# File actiontext/lib/action_text/attachable.rb, line 146
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 146
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachable