instance method build_attachment

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1 Private

Signature

build_attachment(blob:)

No documentation comment.

Parameters

blob keyreq
Source
# File activestorage/lib/active_storage/attached/one.rb, line 74
      def build_attachment(blob:)
        ActiveStorage::Attachment.new(record: record, name: name, blob: blob)
      end

Defined in activestorage/lib/active_storage/attached/one.rb line 74 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveStorage::Attached::One

Type at least 2 characters to search.

↑↓ navigate · open · esc close