Class: Alchemy::EssenceDate

Inherits:
BaseRecord
  • Object
show all
Defined in:
app/models/alchemy/essence_date.rb

Instance Method Summary collapse

Methods inherited from BaseRecord

#active_record_5_1?

Instance Method Details

#preview_text(_maxlength = nil) ⇒ Object

Returns self.date for the Element#preview_text method.


20
21
22
23
# File 'app/models/alchemy/essence_date.rb', line 20

def preview_text(_maxlength = nil)
  return "" if date.blank?
  ::I18n.l(date, format: :'alchemy.essence_date')
end