aboutsummaryrefslogtreecommitdiffstats
path: root/lib/active_storage
diff options
context:
space:
mode:
Diffstat (limited to 'lib/active_storage')
-rw-r--r--lib/active_storage/controllers/variants_controller.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/active_storage/controllers/variants_controller.rb b/lib/active_storage/controllers/variants_controller.rb
deleted file mode 100644
index 094f94e706..0000000000
--- a/lib/active_storage/controllers/variants_controller.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require "action_controller"
-require "active_storage/blob"
-
-class ActiveStorage::Controllers::VariantsController < ActionController::Base
- def show
- if blob_key = decode_verified_key
- variant = ActiveStorage::Variant.find_or_create_by(blob_key: blob_key, variation_key: params[:variation_key])
- redirect_to variant.url
- else
- head :not_found
- end
- end
-
- private
- def decode_verified_key
- ActiveStorage::VerifiedKeyWithExpiration.decode(params[:encoded_key])
- end
-
- def disposition_param
- params[:disposition].presence_in(%w( inline attachment )) || 'inline'
- end
-end