Sha256: c3ef198306209df9ced7d40779b3bcdc3445971fddea317595ce786b497812e0
Contents?: true
Size: 278 Bytes
Versions: 19
Compression:
Stored size: 278 Bytes
Contents
module Alchemy class EssenceDate < ActiveRecord::Base acts_as_essence( :ingredient_column => :date ) # Returns self.date for the Element#preview_text method. def preview_text(foo=nil) return "" if date.blank? ::I18n.l(date, :format => :date) end end end
Version data entries
19 entries across 19 versions & 1 rubygems