Module: Ultracache::Cached::ClassMethods

Defined in:
lib/ultracache/cached.rb

Instance Method Summary collapse

Instance Method Details

#relationships(options = {}) ⇒ Object

Finds all Relationship objects associated with the class. The relationships include cache associations defined in parent classes of the caller class. A new Relationships object is created as return value of this method.



89
90
91
92
93
# File 'lib/ultracache/cached.rb', line 89

def relationships(options = {})
  rs = Ultracache::Configurations.find_relationships(self, options)
  return Ultracache::Configurations.add_relationships(self) unless rs
  rs
end