Class: ActiveStorageValidations::ASVAttachableAdapter::Path
Instance Method Summary collapse
Methods inherited from FileLike
#content_type, #filename, #initialize, #read
Methods inherited from Base
#content_type, #filename, #initialize, #read
Constructor Details
This class inherits a constructor from ActiveStorageValidations::ASVAttachableAdapter::FileLike
Instance Method Details
#rewind ⇒ Object
205 206 207 |
# File 'lib/active_storage_validations/asv_attachable_adapter.rb', line 205 def rewind File.open(@attachable) { |file| file.rewind } end |
#with_media_path(_tempfile) {|@attachable.to_s| ... } ⇒ Object
209 210 211 |
# File 'lib/active_storage_validations/asv_attachable_adapter.rb', line 209 def with_media_path(_tempfile) yield @attachable.to_s end |