Permalink
Browse files

fix inspect for unintialized schema

  • Loading branch information...
1 parent fe7d160 commit f10eae8d0926daa9e25784bc2be7879889e4410a Matt Conway committed Oct 3, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/cassandra/0.7/cassandra.rb
@@ -11,7 +11,7 @@ def login!(username, password)
def inspect
"#<Cassandra:#{object_id}, @keyspace=#{keyspace.inspect}, @schema={#{
- schema(false).cf_defs.map {|cfdef| ":#{cfdef.name} => #{cfdef.column_type}"}.join(', ')
+ Array(schema(false).cf_defs).map {|cfdef| ":#{cfdef.name} => #{cfdef.column_type}"}.join(', ')
}}, @servers=#{servers.inspect}>"
end

0 comments on commit f10eae8

Please sign in to comment.