Skip to content

Commit 6998747

Browse files
committed
Remove internal usage of require_dependency
Since 6983a89 `require_dependency` is obsolete since Rails stopped supporting classic mode. It is only used by engines that need to support classic mode as well. We can safely remove internal usage of `require_dependency`. It was only used in the ActionMailer::Preview which is using just `require` anyway.
1 parent 6633671 commit 6998747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

actionmailer/lib/action_mailer/preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def preview_name
144144
private
145145
def load_previews
146146
preview_paths.each do |preview_path|
147-
Dir["#{preview_path}/**/*_preview.rb"].sort.each { |file| require_dependency file }
147+
Dir["#{preview_path}/**/*_preview.rb"].sort.each { |file| require file }
148148
end
149149
end
150150

0 commit comments

Comments
 (0)