instance method attachment_for_node

Ruby on Rails 7.1.6

Since v6.0.6 Private

Available in: v6.0.6 v6.1.7.10 v7.0.10 v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

attachment_for_node(node, with_full_attributes: true)

No documentation comment.

Parameters

node req
with_full_attributes key = true
Source
# File actiontext/lib/action_text/content.rb, line 166
      def attachment_for_node(node, with_full_attributes: true)
        attachment = ActionText::Attachment.from_node(node)
        with_full_attributes ? attachment.with_full_attributes : attachment
      end

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

Defined in ActionText::Content

Type at least 2 characters to search.

↑↓ navigate · open · esc close