Module: Ultracache::Cached::ClassMethods
- Defined in:
- lib/ultracache/cached.rb
Instance Method Summary collapse
-
#relationships(options = {}) ⇒ Object
Finds all Relationship objects associated with the class.
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( = {}) rs = Ultracache::Configurations.find_relationships(self, ) return Ultracache::Configurations.add_relationships(self) unless rs rs end |