instance method write_attachment

Ruby on Rails 5.2.8.1

Since v5.2.8.1 Last seen in v6.1.7.10 Private

Available in: v5.2.8.1 v6.0.6 v6.1.7.10

Signature

write_attachment(attachment)

No documentation comment.

Parameters

attachment req
Source
# File activestorage/lib/active_storage/attached/one.rb, line 78
      def write_attachment(attachment)
        record.public_send("#{name}_attachment=", attachment)
      end

Defined in activestorage/lib/active_storage/attached/one.rb line 78 · 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