Sha256: 0d48c9ed3cf53f9890876ff0fca1709ce4b56b3e569be937b5ca89cac8bfdbe6
Contents?: true
Size: 557 Bytes
Versions: 71
Compression:
Stored size: 557 Bytes
Contents
# frozen_string_literal: true # == Schema Information # # Table name: alchemy_essence_dates # # id :integer not null, primary key # date :datetime # created_at :datetime not null # updated_at :datetime not null # module Alchemy class EssenceDate < BaseRecord acts_as_essence ingredient_column: "date" # Returns self.date for the Element#preview_text method. def preview_text(_maxlength = nil) return "" if date.blank? ::I18n.l(date, format: :'alchemy.essence_date') end end end
Version data entries
71 entries across 71 versions & 1 rubygems