mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Merge pull request #4384 from tgxworld/raise_error_when_method_not_implemented
FIX: Make sure we raise an error when method is not implemented.
This commit is contained in:
commit
42593562f5
1 changed files with 15 additions and 0 deletions
|
@ -13,6 +13,7 @@ module FileStore
|
|||
end
|
||||
|
||||
def store_file(file, path, opts = {})
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def remove_upload(upload)
|
||||
|
@ -24,24 +25,31 @@ module FileStore
|
|||
end
|
||||
|
||||
def remove_file(url)
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def has_been_uploaded?(url)
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def download_url(upload)
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def cdn_url(url)
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def absolute_base_url
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def relative_base_url
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def external?
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def internal?
|
||||
|
@ -49,6 +57,7 @@ module FileStore
|
|||
end
|
||||
|
||||
def path_for(upload)
|
||||
not_implemented
|
||||
end
|
||||
|
||||
def download(upload)
|
||||
|
@ -111,6 +120,12 @@ module FileStore
|
|||
`ls -tr #{CACHE_DIR} | head -n +#{CACHE_MAXIMUM_SIZE} | xargs rm -f`
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def not_implemented
|
||||
raise "Not implemented."
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue