Sha256: 8fb23d3cd1fb1649c08c4c6e63f59b4970b765d53f7cf0ae48d2d3efcb6996cb
Contents?: true
Size: 297 Bytes
Versions: 76
Compression:
Stored size: 297 Bytes
Contents
# frozen_string_literal: true module ActiveStorage class Attached::Changes::CreateOneOfMany < Attached::Changes::CreateOne #:nodoc: private def find_attachment record.public_send("#{name}_attachments").detect { |attachment| attachment.blob_id == blob.id } end end end
Version data entries
76 entries across 76 versions & 7 rubygems