lib/cassandra_object/model.rb in extendi-cassandra_object-1.0.9 vs lib/cassandra_object/model.rb in extendi-cassandra_object-1.0.10
- old
+ new
@@ -29,10 +29,14 @@
@allow_filtering ||= false
end
def _key
# todo only first key
- keys.tr('()','').split(',').first
+ _keys.first
+ end
+
+ def _keys
+ keys.tr('()','').gsub(/\s+/, "").split(',')
end
def keys=(value)
@keys = value
end