From 57226e4b8143674e72b3c7aa542ee51bcc8f5294 Mon Sep 17 00:00:00 2001 From: Douglas Pouk Date: Mon, 11 Oct 2021 09:25:50 -0500 Subject: [PATCH] Logger warning was incorrect --- lib/ranked-model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ranked-model.rb b/lib/ranked-model.rb index 4c40f09..1cca0d1 100644 --- a/lib/ranked-model.rb +++ b/lib/ranked-model.rb @@ -49,7 +49,7 @@ def ranks *args ranker = RankedModel::Ranker.new(*args) if column_default(ranker) - Rails.logger.fatal NonNilColumnDefault, %Q{Your ranked model column "#{ranker.name}" must not have a default value in the database.} + Rails.logger.fatal %Q{NonNilColumnDefault: Your ranked model column "#{ranker.name}" must not have a default value in the database.} end self.rankers << ranker