From f601a01b2cb4c6c0b9f6397874c2998810993bed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 3 Aug 2017 16:40:37 -0400 Subject: 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. --- activestorage/app/models/active_storage/attachment.rb | 1 - activestorage/app/models/active_storage/blob.rb | 6 ------ 2 files changed, 7 deletions(-) (limited to 'activestorage/app/models') 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: # -- cgit v1.2.3