Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
64
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @file    = StoredFile.create(filename: filename, hex: hexfile, folder: folder)
  2. FileUtils.move(tempfile.path, "/data/files/#{@file.hex}")
  3. @file.save!
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement