class

ActionText::RichText

Inherits Reference < Object

Constants

TABLE = "action_text_rich_texts"

Constructors

create(attrs : Hash) : RichText
Source
from_row(rs : DB::ResultSet) : RichText
Source
new(name : String | Nil = nil, body : String | Nil = nil, record_type : String | Nil = nil, record_id : Int64 | Nil = nil)
Source

Class methods

count
Source
find_by
Source
where(conditions : Hash) : Array(RichText)
Source
where
Source

Instance methods

blank?
Source
body
Source
body=(body : String | Nil)
Source
id=(id : Int64 | Nil)
Source
inspect(io : IO) : Nil

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
name
Source
name=(name : String | Nil)
Source
new_record=(new_record : Bool)
Source
new_record?
Source
present?
Source
record_id
Source
record_id=(record_id : Int64 | Nil)
Source
record_type
Source
record_type=(record_type : String | Nil)
Source
save
Source
to_body_content
Source
to_plain_text
Source
to_s

The gem delegates to_s to the Content (layout-wrapped sanitized HTML).

Source