Sha256: 28156b0617890713632268dfebeaa8062fcc3d6477c4ef231998daa92932f06b
Contents?: true
Size: 405 Bytes
Versions: 4
Compression:
Stored size: 405 Bytes
Contents
module ApiResource module Associations class BelongsToRemoteObjectProxy < SingleObjectProxy def initialize(klass, owner) super(klass, owner) # now if we have an owner and a foreign key, we set the data up to load if key = owner.send(self.klass.to_s.foreign_key) self.remote_path = self.klass.element_path(key) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems