Flowdock
method

upload

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: CreateOne
upload() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activestorage/lib/active_storage/attached/changes/create_one.rb, line 23
    def upload
      case attachable
      when ActionDispatch::Http::UploadedFile, Rack::Test::UploadedFile
        blob.upload_without_unfurling(attachable.open)
      when Hash
        blob.upload_without_unfurling(attachable.fetch(:io))
      end
    end
Register or log in to add new notes.