class method
self.from_attributes
Ruby on Rails 7.0.10
Since v6.0.6Signature
self.from_attributes(attributes, attachable = nil)
No documentation comment.
Parameters
-
attributesreq -
attachableopt = nil
Source
# File actiontext/lib/action_text/attachment.rb, line 32
def from_attributes(attributes, attachable = nil)
if node = node_from_attributes(attributes)
from_node(node, attachable)
end
end
Defined in actiontext/lib/action_text/attachment.rb line 32
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionText::Attachment