lib/action_mailer/preview.rb in actionmailer-6.0.6.1 vs lib/action_mailer/preview.rb in actionmailer-6.1.0.rc1

- old
+ new

@@ -112,10 +112,10 @@ all.find { |p| p.preview_name == preview } end # Returns the underscored name of the mailer preview without the suffix. def preview_name - name.sub(/Preview$/, "").underscore + name.delete_suffix("Preview").underscore end private def load_previews if preview_path