From be4a30ee02704b591f45fe12e1546739bf35f1cb Mon Sep 17 00:00:00 2001 From: Patrick J Cherry Date: Wed, 12 Dec 2012 10:46:58 +0000 Subject: Fixed up alert truncating only to work on strings. Added test case. --- lib/mauve/alert.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 9d04250..a2033a5 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -272,7 +272,7 @@ module Mauve attributes.each do |key, val| prop = self.class.properties[key] next unless prop.is_a?(DataMapper::Property::String) - + next unless val.is_a?(String) # # Truncate # -- cgit v1.2.1