Sha256: 5fce982b576bd43a62c7953aa458cc9a62ef5b966db6724978837424873047fd
Contents?: true
Size: 592 Bytes
Versions: 9
Compression:
Stored size: 592 Bytes
Contents
# frozen_string_literal: true # == Schema Information # # Table name: alchemy_essence_dates # # id :integer not null, primary key # date :datetime # creator_id :integer # updater_id :integer # created_at :datetime not null # updated_at :datetime not null # module Alchemy class EssenceDate < ActiveRecord::Base 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: :date) end end end
Version data entries
9 entries across 9 versions & 1 rubygems