@@ -86,14 +86,6 @@ def find_signed!(id, record: nil, purpose: :blob_id)
8686 super ( id , purpose : purpose )
8787 end
8888
89- def build_after_upload ( io :, filename :, content_type : nil , metadata : nil , service_name : nil , identify : true , record : nil ) #:nodoc:
90- new ( filename : filename , content_type : content_type , metadata : metadata , service_name : service_name ) . tap do |blob |
91- blob . upload ( io , identify : identify )
92- end
93- end
94-
95- deprecate :build_after_upload
96-
9789 def build_after_unfurling ( key : nil , io :, filename :, content_type : nil , metadata : nil , service_name : nil , identify : true , record : nil ) #:nodoc:
9890 new ( key : key , filename : filename , content_type : content_type , metadata : metadata , service_name : service_name ) . tap do |blob |
9991 blob . unfurl ( io , identify : identify )
@@ -115,9 +107,6 @@ def create_and_upload!(key: nil, io:, filename:, content_type: nil, metadata: ni
115107 end
116108 end
117109
118- alias_method :create_after_upload! , :create_and_upload!
119- deprecate create_after_upload! : :create_and_upload!
120-
121110 # Returns a saved blob _without_ uploading a file to the service. This blob will point to a key where there is
122111 # no file yet. It's intended to be used together with a client-side upload, which will first create the blob
123112 # in order to produce the signed URL for uploading. This signed URL points to the key generated by the blob.
@@ -208,9 +197,6 @@ def url(expires_in: ActiveStorage.service_urls_expire_in, disposition: :inline,
208197 content_type : content_type_for_serving , disposition : forced_disposition_for_serving || disposition , **options
209198 end
210199
211- alias_method :service_url , :url
212- deprecate service_url : :url
213-
214200 # Returns a URL that can be used to directly upload a file for this blob on the service. This URL is intended to be
215201 # short-lived for security and only generated on-demand by the client-side JavaScript responsible for doing the uploading.
216202 def service_url_for_direct_upload ( expires_in : ActiveStorage . service_urls_expire_in )
0 commit comments