aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_file/site.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-04 17:00:36 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-04 17:00:36 +0200
commit5dfbc5878d67824c6dc51b6e58c34b77c07cc3bc (patch)
tree037073a26ace4ee9a583a09d5934383f51e10d08 /lib/active_file/site.rb
parent4dc60aabcc3785cff8cf9da9265f07b55843f8b0 (diff)
downloadrails-5dfbc5878d67824c6dc51b6e58c34b77c07cc3bc.tar.gz
rails-5dfbc5878d67824c6dc51b6e58c34b77c07cc3bc.tar.bz2
rails-5dfbc5878d67824c6dc51b6e58c34b77c07cc3bc.zip
Pair down interface to match what's been implemented
Diffstat (limited to 'lib/active_file/site.rb')
-rw-r--r--lib/active_file/site.rb12
1 files changed, 3 insertions, 9 deletions
diff --git a/lib/active_file/site.rb b/lib/active_file/site.rb
index 31640695d5..260b84ab88 100644
--- a/lib/active_file/site.rb
+++ b/lib/active_file/site.rb
@@ -7,8 +7,6 @@ class ActiveFile::Site
end
end
- def initialize
- end
def upload(key, io)
raise NotImplementedError
@@ -26,20 +24,16 @@ class ActiveFile::Site
raise NotImplementedError
end
- def url(key)
- raise NotImplementedError
- end
- def checksum(key)
+ def url(key, expires_in: nil)
raise NotImplementedError
end
-
- def copy(from:, to:)
+ def bytesize(key)
raise NotImplementedError
end
- def move(from:, to:)
+ def checksum(key)
raise NotImplementedError
end
end