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

Version Path
activestorage-6.1.7.10 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.9 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.8 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.7 lib/active_storage/attached/changes/create_one_of_many.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.6 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.4 lib/active_storage/attached/changes/create_one_of_many.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.3 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.6.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.7 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.6 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.6.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.5.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.6 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.5.1 lib/active_storage/attached/changes/create_one_of_many.rb