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.



97
98
99
100
101
# File 'lib/ultracache/cached.rb', line 97

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