instance method
as_json
Ruby on Rails 7.0.10
Since v6.0.6 Last seen in v7.0.10Signature
as_json(*)
No documentation comment.
Parameters
-
argsrest
Source
# File actiontext/lib/action_text/attachable.rb, line 66
def as_json(*)
super.merge("attachable_sgid" => persisted? ? attachable_sgid : nil)
end
Defined in actiontext/lib/action_text/attachable.rb line 66
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachable