Sha256: 8effc18674f4e0f531789b6fd158ed363a8e9e6895f58f2d78f467398f9377e9

Contents?: true

Size: 298 Bytes

Versions: 56

Compression:

Stored size: 298 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

56 entries across 53 versions & 6 rubygems

Version Path
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/activestorage-7.1.3.4/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.5.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.0.8.7 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.4.2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.0.8.6 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.4.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.0.8.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.4 lib/active_storage/attached/changes/create_one_of_many.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activestorage-7.0.8.4/lib/active_storage/attached/changes/create_one_of_many.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activestorage-7.1.3.4/lib/active_storage/attached/changes/create_one_of_many.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activestorage-7.0.5.1/lib/active_storage/attached/changes/create_one_of_many.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activestorage-7.0.5.1/lib/active_storage/attached/changes/create_one_of_many.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activestorage-7.0.5.1/lib/active_storage/attached/changes/create_one_of_many.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activestorage-7.1.3.4/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.3.4 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.0.8.4 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.3.2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.1.3.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-7.0.8.1 lib/active_storage/attached/changes/create_one_of_many.rb