Sha256: 00f3fb641365031bed72d72e244cc2b48781cbd91fc779de71d4b5da74939e2f

Contents?: true

Size: 225 Bytes

Versions: 1

Compression:

Stored size: 225 Bytes

Contents

module Yaks
  class Mapper
    class HasOne < Association
      def map_resource(object, context)
        association_mapper(context.fetch(:policy))
          .new(context)
          .call(object)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
yaks-0.4.0 lib/yaks/mapper/has_one.rb