Skip to content

Commit

Permalink
Use preview_paths for Rails 7.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
excid3 committed Dec 6, 2023
1 parent 8c67562 commit e35c35a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/dummy/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Application < Rails::Application
# Set the ActionMailer preview path to the gem test directory
config.action_mailer.show_previews = true

if config.action_mailer.respond_to? :preview_paths
if Rails.gem_version >= Gem::Version.new("7.1.0.alpha")
config.action_mailer.preview_paths << Rails.root.join("../../test/mailers/previews")
else
config.action_mailer.preview_path = Rails.root.join("../../test/mailers/previews")
Expand Down

0 comments on commit e35c35a

Please sign in to comment.