Sha256: d1aad0305093d13c916b9d3db581c0c99611ec21d5c0596b66b2d5af4642c863
Contents?: true
Size: 326 Bytes
Versions: 40
Compression:
Stored size: 326 Bytes
Contents
module Alchemy class EssenceDate < ActiveRecord::Base attr_accessible :date 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
40 entries across 40 versions & 1 rubygems