Module: Garner::Mixins::Mongoid::Document

Extended by:
ActiveSupport::Concern
Includes:
Cache::Binding
Defined in:
lib/garner/mixins/mongoid/document.rb

Instance Method Summary collapse

Methods included from Cache::Binding

#garner_cache_key, #invalidate_garner_caches, #invalidation_strategy, #key_strategy

Instance Method Details

#identity_stringObject


12
13
14
# File 'lib/garner/mixins/mongoid/document.rb', line 12

def identity_string
  "#{self.class.name}/id=#{id}"
end

#proxied_classesObject


8
9
10
# File 'lib/garner/mixins/mongoid/document.rb', line 8

def proxied_classes
  self.class.mongoid_superclasses
end