Skip to content

Commit 05f3a2c

Browse files
committed
Prevent undefined method 'parent' for ExampleApp::Application:Class
The parent class is already ExampleApp
1 parent c7e14ea commit 05f3a2c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

example_app_generator/generate_action_mailer_specs.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@
1414
end
1515
end
1616
CODE
17-
gsub_file 'config/initializers/action_mailer.rb',
18-
/ExampleApp/,
19-
Rails.application.class.parent.to_s
2017

2118
copy_file 'spec/support/default_preview_path'
2219
chmod 'spec/support/default_preview_path', 0755
23-
gsub_file 'spec/support/default_preview_path',
24-
/ExampleApp/,
25-
Rails.application.class.parent.to_s
2620
if skip_active_record?
2721
comment_lines 'spec/support/default_preview_path', /active_record/
2822
comment_lines 'spec/support/default_preview_path', /active_storage/

0 commit comments

Comments
 (0)