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

Version Path
alchemy_cms-2.1.12 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.11 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.9.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.9 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.8.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.8 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.7 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.6 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.5 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.4 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.3 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.rc6 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.rc5 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.rc4 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.rc3 app/models/alchemy/essence_date.rb
alchemy_cms-2.1.rc2 app/models/alchemy/essence_date.rb