Permalink
Browse files

reducer hotfix

  • Loading branch information...
1 parent 2ed8b16 commit 30431d77c27f91fe78b317175b1032ee4f68d295 s.averyanov committed Jul 23, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/pulse-meter/mixins/cmd.rb
@@ -16,7 +16,11 @@ def to_table(format = nil)
end
else
self.each_with_object(Terminal::Table.new) do |row, table|
- table << row.map(&:to_s)
+ table << if row.respond_to?(:map)
+ row.map(&:to_s)
+ else
+ row
+ end
end
end
end

0 comments on commit 30431d7

Please sign in to comment.