Sha256: 9c87fce992c8f65b5b949a6bc69bc3d6559435e74684e0341dff6f9a4103ae9f
Contents?: true
Size: 371 Bytes
Versions: 13
Compression:
Stored size: 371 Bytes
Contents
module JsonApiClient module Associations module HasOne class Association < BaseAssociation def from_result_set(result_set) result_set.first end def load_records(data) record_class = Utils.compute_type(klass, data["type"].classify) record_class.load id: data["id"] end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems