method
from_attachable
rails latest stable - Class:
ActionText::Attachment
from_attachable(attachable, attributes = {})public
No documentation available.
# File actiontext/lib/action_text/attachment.rb, line 37
def from_attachable(attachable, attributes = {})
if node = node_from_attributes(attachable.to_rich_text_attributes(attributes))
new(node, attachable)
end
end