Skip to content

Commit 926aad9

Browse files
committed
Skip Action Mailbox for No AR example app
Action Mailbox requires Active Record
1 parent e732581 commit 926aad9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

example_app_generator/generate_action_mailer_specs.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
if skip_active_record?
3232
comment_lines 'spec/support/default_preview_path', /active_record/
3333
comment_lines 'spec/support/default_preview_path', /active_storage/
34+
comment_lines 'spec/support/default_preview_path', /active_mailbox/
3435
end
3536
copy_file 'spec/verify_mailer_preview_path_spec.rb'
3637
end

example_app_generator/spec/support/default_preview_path

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ require_file_stub 'config/environment' do
2929
if Rails::VERSION::STRING >= '6'
3030
require "action_cable/engine"
3131
require "active_job/railtie"
32+
require "action_mailbox/engine"
3233
end
3334

3435
# Require the gems listed in Gemfile, including any gems

0 commit comments

Comments
 (0)