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.0.4.8 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.7 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.7 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.6 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.6 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.5 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.4 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.4 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.3 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.3 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.2 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.2 lib/active_storage/attached/changes/create_one_of_many.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/lib/active_storage/attached/changes/create_one_of_many.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4.1 lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.0.4.1 lib/active_storage/attached/changes/create_one_of_many.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/activestorage-6.1.4/lib/active_storage/attached/changes/create_one_of_many.rb
activestorage-6.1.4 lib/active_storage/attached/changes/create_one_of_many.rb