lib/earthquake/ext.rb in earthquake-0.5.8 vs lib/earthquake/ext.rb in earthquake-0.5.9
- old
+ new
@@ -1,7 +1,7 @@
class String
def c(*codes)
- codes = codes.map { |code|
+ codes = codes.flatten.map { |code|
case code
when String, Symbol
Earthquake.config[:color][code.to_sym] rescue nil
else
code
\ No newline at end of file