Sha256: b2b692e5bc7c171d533284c368678b48e2fbbb889623e0d710085b6fa6000546

Contents?: true

Size: 270 Bytes

Versions: 5

Compression:

Stored size: 270 Bytes

Contents

class Descendant < User

  belongs_to :location

  model_cache do
    with_attribute :email
    with_method :name
    with_association :location
    with_class_method :default_name
  end

  def name
    "ScotterC"
  end

  def self.default_name
    "ScotterC"
  end

end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
simple_cacheable-1.5.1 spec/models/descendant.rb
simple_cacheable-1.5.0 spec/models/descendant.rb
generation_cacheable-1.0.0 spec/models/descendant.rb
simple_cacheable-1.4.1 spec/models/descendant.rb
simple_cacheable-1.4.0 spec/models/descendant.rb