Sha256: 70bc2702b1c23df3c8b22cfc2adf6e27a7914532c15fe232da65136b40bf463a
Contents?: true
Size: 286 Bytes
Versions: 29
Compression:
Stored size: 286 Bytes
Contents
module Yaks class Mapper class HasOne < Association def map_resource(object, context) resolve_association_mapper(context.fetch(:policy)) .new(context) .call(object) end def singular_name name.to_s end end end end
Version data entries
29 entries across 29 versions & 2 rubygems