Sha256: 804971558de486565006394c46e4286d181814683ab064e524bf5ad537802bd2

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

class Account < ActiveRecord::Base
  include Cacheable
  belongs_to :user

  belongs_to :group

  belongs_to :account_location, class_name: Location,
                                foreign_key: :account_location_id

  model_cache do
    with_association :user, :account_location
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
simple_cacheable-1.5.1 spec/models/account.rb
simple_cacheable-1.5.0 spec/models/account.rb