storage engines refactor

This commit is contained in:
Régis Hanol
2015-05-29 18:39:47 +02:00
parent 0483f05154
commit 5a143c0c6e
6 changed files with 93 additions and 132 deletions

View File

@ -110,12 +110,8 @@ end
class FakeInternalStore
def internal?
true
end
def external?
!internal?
false
end
def path_for(upload)
@ -134,10 +130,6 @@ class FakeExternalStore
true
end
def internal?
!external?
end
def store_optimized_image(file, optimized_image)
"/externally/stored/optimized/image#{optimized_image.extension}"
end