allow uploading files by drag and drop

This commit is contained in:
Lucas Clemente
2014-02-05 12:44:53 +01:00
parent 13fc1e5c66
commit 16dd7e46ef
8 changed files with 161 additions and 6 deletions
+8
View File
@@ -60,6 +60,14 @@ module Precious
true
end
def allow_uploads
@allow_uploads
end
def upload_dest
@upload_dest
end
def format
@format = (@page.format || false) if @format.nil?
@format.to_s.downcase