Class: Mastiff::NullUploader
- Inherits:
-
Object
- Object
- Mastiff::NullUploader
- Defined in:
- lib/mastiff/null_uploader.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
permalink .delete(filename) ⇒ Object
[View source]
4 5 6 7 8 |
# File 'lib/mastiff/null_uploader.rb', line 4 def self.delete(filename) return if filename.blank? filepath = File.join(new.store_dir, filename) File.delete(filepath) if File.exists?(filepath) end |
permalink .flush ⇒ Object
[View source]
9 10 11 12 |
# File 'lib/mastiff/null_uploader.rb', line 9 def self.flush puts 'Doing nothing' return nil end |
Instance Method Details
permalink #store_dir ⇒ Object
[View source]
13 14 15 |
# File 'lib/mastiff/null_uploader.rb', line 13 def store_dir return '/tmp' end |
permalink #store_mime(fname, blob) ⇒ Object
[View source]
16 17 18 |
# File 'lib/mastiff/null_uploader.rb', line 16 def store_mime(fname, blob) return nil end |