instance method build_attachment

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v5.2.8.1 Private — implementation detail, not part of the public API

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.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close