Skip to content

Commit

Permalink
Logger warning was incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Pouk committed Oct 11, 2021
1 parent 6265cdb commit 57226e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ranked-model.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 57226e4

Please sign in to comment.