Patch #28024

Fix typo in error message in mailer.rb

Added by Willmore BattleShipNet 11 months ago. Updated 9 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Code cleanup/refactoring
Target version:4.0.0

Description

I saw small thing, mistype?

Index: mailer.rb
===================================================================
--- mailer.rb    (revision 17022)
+++ mailer.rb    (working copy)
@@ -382,7 +382,7 @@
     tracker = options[:tracker] ? Tracker.find(options[:tracker]) : nil
     target_version_id = options[:version] ? Version.named(options[:version]).pluck(:id) : nil
     if options[:version] && target_version_id.blank?
-      raise ActiveRecord::RecordNotFound.new("Couldn't find Version with named #{options[:version]}")
+      raise ActiveRecord::RecordNotFound.new("Couldn't find Version named #{options[:version]}")
     end
     user_ids = options[:users]

could_not_find_version_named_mailer.rb.patch Magnifier (636 Bytes) Willmore BattleShipNet, 2018-01-19 12:16

Associated revisions

Revision 17184
Added by Go MAEDA 11 months ago

Fix typo in error message when target version was not found (#28024).

Patch by Marius Žilėnas.

History

#1 Updated by Go MAEDA 11 months ago

  • Description updated (diff)

#2 Updated by Go MAEDA 11 months ago

  • Target version set to 4.0.0

I think the change is reasonable. Setting target version to 4.0.0.

#3 Updated by Go MAEDA 11 months ago

  • Subject changed from Could not find Version -with- named... patch to Fix typo in error message in mailer.rb
  • Status changed from New to Closed

Committed. Thank you for your contribution.

#4 Updated by Go MAEDA 9 months ago

  • Assignee set to Go MAEDA

Also available in: Atom PDF