Sha256: 4ebfecf671bcf6b143a330fcbca0074eea8e8a1b1604e4aad45a93a11a7890da
Contents?: true
Size: 628 Bytes
Versions: 48
Compression:
Stored size: 628 Bytes
Contents
# frozen_string_literal: true # == Schema Information # # Table name: alchemy_essence_richtexts # # id :integer not null, primary key # body :text # stripped_body :text # public :boolean # created_at :datetime not null # updated_at :datetime not null # module Alchemy class EssenceRichtext < BaseRecord acts_as_essence preview_text_column: "stripped_body" before_save :strip_content def has_tinymce? true end private def strip_content self.stripped_body = Rails::Html::FullSanitizer.new.sanitize(body) end end end
Version data entries
48 entries across 48 versions & 1 rubygems