Sha256: 7161f39f2d0a4ddd7e355678e3a199a4654469f09057f806dc403165d2c3d5fd
Contents?: true
Size: 561 Bytes
Versions: 22
Compression:
Stored size: 561 Bytes
Contents
# == 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
22 entries across 22 versions & 1 rubygems