Add matching storage manager

This commit is contained in:
Albert Yi
2018-07-12 17:15:41 -07:00
parent 4762de65e1
commit ea210bdc75
4 changed files with 7 additions and 10 deletions
+3 -3
View File
@@ -162,15 +162,15 @@ class Post < ApplicationRecord
end
def file_path
storage_manager.file_path(md5, file_ext, :original)
storage_manager.file_path(self, file_ext, :original)
end
def large_file_path
storage_manager.file_path(md5, file_ext, :large)
storage_manager.file_path(self, file_ext, :large)
end
def preview_file_path
storage_manager.file_path(md5, file_ext, :preview)
storage_manager.file_path(self, file_ext, :preview)
end
def crop_file_url