class method self.attachment

Ruby on Rails 6.1.7.10

Since v6.1.7.10

Available in: v6.1.7.10 v7.0.10 v7.1.6 v7.2.4 v8.0.5.1 v8.1.4 edge

Signature

self.attachment(fixture_set_name, label, column_type: :integer)

No documentation comment.

Parameters

fixture_set_name req
label req
column_type key = :integer
Source
# File actiontext/lib/action_text/fixture_set.rb, line 5
    def self.attachment(fixture_set_name, label, column_type: :integer)
      signed_global_id = ActiveRecord::FixtureSet.signed_global_id fixture_set_name, label,
        column_type: column_type, for: ActionText::Attachable::LOCATOR_NAME

      %(<action-text-attachment sgid="#{signed_global_id}"></action-text-attachment>)
    end

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

Defined in ActionText::FixtureSet

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close