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

Version Path
alchemy_cms-2.6.3 app/models/alchemy/essence_date.rb
alchemy_cms-2.6.2.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.6.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.6.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.6.0 app/models/alchemy/essence_date.rb
alchemy_cms-2.6.0.rc5 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.3.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.3 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.2.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.2.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.0 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.0.rc3 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.0.b9 app/models/alchemy/essence_date.rb
alchemy_cms-2.3.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.4 app/models/alchemy/essence_date.rb
alchemy_cms-2.4.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.0.b5 app/models/alchemy/essence_date.rb
alchemy_cms-2.5.0.b2 app/models/alchemy/essence_date.rb