Sha256: 46cece44d00b2a4989760361d1f19f0bc3c3874553f30ef07f0730e872d699b9
Contents?: true
Size: 680 Bytes
Versions: 30
Compression:
Stored size: 680 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 # creator_id :integer # updater_id :integer # 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
30 entries across 30 versions & 1 rubygems