Skip to content

Commit 52979e7

Browse files
committed
Fix autoload error on Rails 5
1 parent 93e5157 commit 52979e7

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

example_app_generator/generate_action_mailer_specs.rb

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ def comment_lines(path, flag, *args)
2424
end
2525
end
2626
end
27-
28-
if defined?(ActionMailer)
29-
# This will force the loading of ActionMailer settings
30-
ActionMailer::Base.smtp_settings
31-
end
3227
CODE
3328
gsub_file 'config/initializers/action_mailer.rb',
3429
/ExampleApp/,

example_app_generator/spec/support/default_preview_path

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ require_file_stub 'config/environment' do
3232
module ExampleApp
3333
class Application < Rails::Application
3434
config.eager_load = false
35-
config.eager_load_paths.clear
3635

3736
# Don't care if the mailer can't send.
3837
config.action_mailer.raise_delivery_errors = false unless ENV['NO_ACTION_MAILER']

0 commit comments

Comments
 (0)