lib/fnordmetric/namespace.rb in fnordmetric-0.5.3 vs lib/fnordmetric/namespace.rb in fnordmetric-0.5.4
- old
+ new
@@ -64,12 +64,11 @@
@key
end
def dashboards(name=nil)
return @dashboards unless name
- @dashboards[name] ||= FnordMetric::Dashboard.new(
- :title => name
- )
+ dash = FnordMetric::Dashboard.new(:title => name)
+ @dashboards[dash.token.to_s] ||= dash
end
def sessions(_ids, opts={})
return FnordMetric::Session.all(extend_opts(opts)) if _ids == :all
end