From bc4488c15a4f64b15d062be7912d0582d106b88b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 14 Nov 2013 22:29:53 +0100 Subject: [PATCH] Improved log info. --- app/models/application_model.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/application_model.rb b/app/models/application_model.rb index 9e024d90e..75f984adc 100644 --- a/app/models/application_model.rb +++ b/app/models/application_model.rb @@ -470,7 +470,7 @@ check string/varchar size and cut them if needed if column && limit current_length = attribute[1].to_s.length if limit < current_length - puts "WARNING: cut string because of database length #{self.class.to_s}#{attribute[0]}(#{limit} but is #{current_length})" + puts "WARNING: cut string because of database length #{self.class.to_s}.#{attribute[0]}(#{limit} but is #{current_length}:#{attribute[1].to_s})" self[attribute[0]] = attribute[1][ 0, limit ] end end