Sha256: 8a3dbc013584784414be0498a1c01cf52f4364406a5e7170c8887fa1c76efa82
Contents?: true
Size: 278 Bytes
Versions: 2
Compression:
Stored size: 278 Bytes
Contents
module Yaks class Mapper class HasOne < Association def map_resource(object, context) association_mapper(context.fetch(:policy)) .new(context) .call(object) end def singular_name name.to_s end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
yaks-0.4.2 | lib/yaks/mapper/has_one.rb |
yaks-0.4.1 | lib/yaks/mapper/has_one.rb |