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.4.0 app/models/alchemy/essence_date.rb
alchemy_cms-2.4.rc4 app/models/alchemy/essence_date.rb
alchemy_cms-2.4.rc2 app/models/alchemy/essence_date.rb
alchemy_cms-2.4.rc1 app/models/alchemy/essence_date.rb
alchemy_cms-2.3.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.4.beta2 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.3.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.3.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.3.0 app/models/alchemy/essence_date.rb
alchemy_cms-2.3.rc5 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.2 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.1 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.0 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc15 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc14 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc13 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc11 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc8 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc7 app/models/alchemy/essence_date.rb
alchemy_cms-2.2.rc6 app/models/alchemy/essence_date.rb