aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models
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/models
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/models')
-rw-r--r--activestorage/app/models/active_storage/attachment.rb1
-rw-r--r--activestorage/app/models/active_storage/blob.rb6
2 files changed, 0 insertions, 7 deletions
diff --git a/activestorage/app/models/active_storage/attachment.rb b/activestorage/app/models/active_storage/attachment.rb
index 2c8b7a9cf2..f7540e3a38 100644
--- a/activestorage/app/models/active_storage/attachment.rb
+++ b/activestorage/app/models/active_storage/attachment.rb
@@ -1,4 +1,3 @@
-require "active_storage/blob"
require "active_support/core_ext/module/delegation"
# Attachments associate records with blobs. Usually that's a one record-many blobs relationship,
diff --git a/activestorage/app/models/active_storage/blob.rb b/activestorage/app/models/active_storage/blob.rb
index b5f4342b50..debc62bd41 100644
--- a/activestorage/app/models/active_storage/blob.rb
+++ b/activestorage/app/models/active_storage/blob.rb
@@ -1,9 +1,3 @@
-require "active_storage/service"
-require "active_storage/filename"
-require "active_storage/purge_job"
-require "active_storage/variant"
-require "active_storage/variation"
-
# A blob is a record that contains the metadata about a file and a key for where that file resides on the service.
# Blobs can be created in two ways:
#