Sha256: 7b3305b70c10a12766b7f843b49f11c1caf523b1cbcfe005c39af2184d15617c

Contents?: true

Size: 172 Bytes

Versions: 5

Compression:

Stored size: 172 Bytes

Contents

class Person
  include Ultracache::Cached

  has_cached_attribute :cached_name do |person|
    person.name
  end

  def id
    "1"
  end

  def name
    'person'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ultracache-0.1.4 spec/models/person.rb
ultracache-0.1.3 spec/models/person.rb
ultracache-0.1.2 spec/models/person.rb
ultracache-0.1.1 spec/models/person.rb
ultracache-0.1.0 spec/models/person.rb