lib/redis-ui/helpers.rb in redis-ui-0.4.0 vs lib/redis-ui/helpers.rb in redis-ui-0.4.1
- old
+ new
@@ -7,9 +7,13 @@
def partial(template,locals=nil)
locals = (locals.is_a?(Hash)) ? locals : {template.to_sym => locals}
template = ('_' + template.to_s).to_sym
erb template, {layout: false}, locals
end
+
+ def current_ns
+ @current_ns ||= ''
+ end
def get_key(key, redis=self.redis)
data = case redis.type(key)
when "string"
redis[key]