diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-12-12 10:46:58 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-12-12 10:46:58 +0000 |
commit | be4a30ee02704b591f45fe12e1546739bf35f1cb (patch) | |
tree | 286dfa333a37b0ad6e02a86b1bd06d3e8063447c /lib/mauve | |
parent | ac2fb2330a564ba52761ed2b06036c61fc9f07d6 (diff) |
Fixed up alert truncating only to work on strings. Added test case.
Diffstat (limited to 'lib/mauve')
-rw-r--r-- | lib/mauve/alert.rb | 2 |
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 # |