Flowdock
class
Importance_1
v7.1.3.2 - Show latest stable - 0 notes - Superclass: Object

Action Text Attachment

Attachments serialize attachables to HTML or plain text.

class Person < ApplicationRecord
  include ActionText::Attachable
end

attachable = Person.create! name: "Javan"
attachment = ActionText::Attachment.from_attachable(attachable)
attachment.to_html # => "<action-text-attachment sgid=\"BAh7CEk..."

Constants

ATTRIBUTES = %w( sgid content-type url href filename filesize width height previewable presentation caption content )

Attributes

[R] attachable
[R] node
Show files where this class is defined (1 file)
Register or log in to add new notes.