aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-12-12 10:46:58 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-12-12 10:46:58 +0000
commitbe4a30ee02704b591f45fe12e1546739bf35f1cb (patch)
tree286dfa333a37b0ad6e02a86b1bd06d3e8063447c /lib/mauve
parentac2fb2330a564ba52761ed2b06036c61fc9f07d6 (diff)
Fixed up alert truncating only to work on strings. Added test case.
Diffstat (limited to 'lib/mauve')
-rw-r--r--lib/mauve/alert.rb2
1 files changed, 1 insertions, 1 deletions
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
#