class method
self.attachment
Ruby on Rails 6.1.7.10
Since v6.1.7.10Signature
self.attachment(fixture_set_name, label, column_type: :integer)
No documentation comment.
Parameters
-
fixture_set_namereq -
labelreq -
column_typekey = :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