instance method as_json

Ruby on Rails 7.0.10

Since v6.0.6 Last seen in v7.0.10

Available in: v6.0.6 v6.1.7.10 v7.0.10

Signature

as_json(*)

No documentation comment.

Parameters

args rest
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close