aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/controllers/active_storage
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2017-08-03 16:40:37 -0400
committerRafael Mendonça França <rafaelmfranca@gmail.com>2017-08-03 16:57:48 -0400
commitf601a01b2cb4c6c0b9f6397874c2998810993bed (patch)
tree0f1771645e89e810a631c503c544cc045ce2fe7b /activestorage/app/controllers/active_storage
parent6a36b6b0cc35ef2272219069bc642b2817895d6a (diff)
downloadrails-f601a01b2cb4c6c0b9f6397874c2998810993bed.tar.gz
rails-f601a01b2cb4c6c0b9f6397874c2998810993bed.tar.bz2
rails-f601a01b2cb4c6c0b9f6397874c2998810993bed.zip
Do not eager load ActiveRecord::Base
Everything inside the app directory of a engine is autoload/eager loaded automatically so we don't need to require them.
Diffstat (limited to 'activestorage/app/controllers/active_storage')
-rw-r--r--activestorage/app/controllers/active_storage/variants_controller.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/activestorage/app/controllers/active_storage/variants_controller.rb b/activestorage/app/controllers/active_storage/variants_controller.rb
index aa38f8e928..994c57aafd 100644
--- a/activestorage/app/controllers/active_storage/variants_controller.rb
+++ b/activestorage/app/controllers/active_storage/variants_controller.rb
@@ -1,5 +1,3 @@
-require "active_storage/variant"
-
# Take a signed permanent reference for a variant and turn it into an expiring service URL for download.
# Note: These URLs are publicly accessible. If you need to enforce access protection beyond the
# security-through-obscurity factor of the signed blob and variation reference, you'll need to implement your own