File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
activestorage/app/models/active_storage Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 17
17
# update a blob's metadata on a subsequent pass, but you should not update the key or change the uploaded file.
18
18
# If you need to create a derivative or otherwise change the blob, simply create a new blob and purge the old one.
19
19
class ActiveStorage ::Blob < ActiveRecord ::Base
20
- require_dependency "active_storage/blob/analyzable"
21
- require_dependency "active_storage/blob/identifiable"
22
- require_dependency "active_storage/blob/representable"
20
+ unless Rails . autoloaders . zeitwerk_enabled?
21
+ require_dependency "active_storage/blob/analyzable"
22
+ require_dependency "active_storage/blob/identifiable"
23
+ require_dependency "active_storage/blob/representable"
24
+ end
23
25
24
26
include Analyzable
25
27
include Identifiable
You can’t perform that action at this time.
0 commit comments