aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-02 16:47:54 +0200
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-02 16:47:54 +0200
commit29d65979f0db385d9872ba56221526638ad3db96 (patch)
tree6a903301e2ce5d0cabf5735665a3a073d7c3e425 /lib
parentcc2c5f428ae0606fe37050772c248bafafd187f0 (diff)
downloadrails-29d65979f0db385d9872ba56221526638ad3db96.tar.gz
rails-29d65979f0db385d9872ba56221526638ad3db96.tar.bz2
rails-29d65979f0db385d9872ba56221526638ad3db96.zip
Forget about verified IDs for now
Diffstat (limited to 'lib')
-rw-r--r--lib/active_file/blob.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/active_file/blob.rb b/lib/active_file/blob.rb
index 75e606b68b..e22976ed94 100644
--- a/lib/active_file/blob.rb
+++ b/lib/active_file/blob.rb
@@ -7,14 +7,9 @@ class ActiveFile::Blob < ActiveRecord::Base
has_secure_token :key
store :metadata, coder: JSON
- class_attribute :verifier, default: -> { Rails.application.message_verifier('ActiveFile') }
class_attribute :site
class << self
- def find_verified(signed_id)
- find(verifier.verify(signed_id))
- end
-
def build_after_upload(data:, filename:, content_type: nil, metadata: nil)
new.tap do |blob|
blob.filename = name