Sha256: 142705ebe77b7ae0b075aefd01d933d132ae16a87fc7c98adfe6d1885b92ff40

Contents?: true

Size: 219 Bytes

Versions: 3

Compression:

Stored size: 219 Bytes

Contents

class Files::DownloadForm < MVCLI::Form
  input :destination, Pathname, required: true, decode: ->(s) {Pathname(s)}

  validates(:destination, "File location must lead to an empty file") {|file| !File.exists? file}
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rumm-0.1.0 app/forms/files/download_form.rb
rumm-0.0.24 app/forms/files/download_form.rb
rumm-0.0.23 app/forms/files/download_form.rb