From 93a09f05ccc062a0f45d829e11789bf5275dfb02 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 24 Jan 2018 03:53:59 +0000 Subject: [PATCH] Fix typo in error message when target version was not found (#28024). MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Patch by Marius Žilėnas. git-svn-id: http://svn.redmine.org/redmine/trunk@17184 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/mailer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/mailer.rb b/app/models/mailer.rb index ca52786c4..633fa4516 100644 --- a/app/models/mailer.rb +++ b/app/models/mailer.rb @@ -382,7 +382,7 @@ class Mailer < ActionMailer::Base 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] -- 2.39.5