repo.or.cz
/
merb_mart.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Whitespace cleanup
[merb_mart.git]
/
lib
/
merb-E-mart
/
upload_processor
/
static_file_processor.rb
blob
43a40986da59c7ac624e3a4543e3fbab4172c5bf
1
class MerbEMart::StaticFileProcessor
2
attr_accessor :temp_file, :raw_data
3
4
def process
5
case
6
when @temp_file.nil? && @raw_data
7
@location = store_file(save_to_disk(@raw_data))
8
when @temp_file
9
@location = store_file(@temp_file)
10
else raise "unable to process your upload"
11
end
12
end
13
end