Sha256: 94f74a5540d57c1b427c6cf4f9b79f19710f88d89b3261b081b6259494c9cf4b
Contents?: true
Size: 593 Bytes
Versions: 16
Compression:
Stored size: 593 Bytes
Contents
# frozen_string_literal: true # == Schema Information # # Table name: alchemy_essence_htmls # # id :integer not null, primary key # source :text # created_at :datetime not null # updated_at :datetime not null # module Alchemy # @deprecated class EssenceHtml < BaseRecord acts_as_essence ingredient_column: "source" # Returns the first x (default = 30) (HTML escaped) characters from self.source for the Element#preview_text method. def preview_text(maxlength = 30) ::CGI.escapeHTML(source.to_s)[0..maxlength] end end end
Version data entries
16 entries across 16 versions & 1 rubygems