Sha256: 5939799bd845584e8c7ca1509d5d6523947410c4e175caf5542d12039c9d03ce
Contents?: true
Size: 688 Bytes
Versions: 9
Compression:
Stored size: 688 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 < ActiveRecord::Base 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
9 entries across 9 versions & 1 rubygems