Skip to content

Commit 3539922

Browse files
authored
Merge pull request rails#49139 from p8/actionmailer/require-previews
Remove internal usage of require_dependency
2 parents f8c10e7 + 6998747 commit 3539922

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)