less code duplication

This commit is contained in:
2011-03-09 11:54:51 +00:00
parent 7a28d1210f
commit 66b9f4e949

View File

@@ -154,7 +154,7 @@ module Redistat
def find_by_magic(options = {})
raise InvalidOptions.new if !valid_options?
key = Key.new(@options[:scope], @options[:label])
key = build_key
col = Collection.new(@options)
col.total = Result.new(@options)
col << col.total