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
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/attached/changes/create_one_of_many.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activestorage-6.0.2.1/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.2.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.2.rc2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.2.rc1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.1 lib/active_storage/attached/changes/create_one_of_many.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activestorage-6.0.0/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.1.rc1 lib/active_storage/attached/changes/create_one_of_many.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/activestorage-6.0.0/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.0 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.0.rc2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.0.rc1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.0.beta3 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.0.beta2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.0.beta1 lib/active_storage/attached/changes/create_one_of_many.rb