Sha256: b0adbb45949bcac56d8ab4730216835a94ea1d19cc5532e04eb4ebbb599ffaa1
Contents?: true
Size: 528 Bytes
Versions: 18
Compression:
Stored size: 528 Bytes
Contents
module CDQ class CDQObjectProxy < CDQObject def initialize(object) @object = object end def get @object end def respond_to?(method) super(method) || @object.entity.relationshipsByName[method] end def method_missing(*args) if @object.entity.relationshipsByName[args.first] CDQRelationshipQuery.new(@object, args.first) else super(*args) end end def destroy @object.managedObjectContext.deleteObject(@object) end end end
Version data entries
18 entries across 18 versions & 1 rubygems