lib/hooray/settings.rb in hooray-0.0.3 vs lib/hooray/settings.rb in hooray-0.0.5
- old
+ new
@@ -32,9 +32,10 @@
out += ' OS' if os_fingerprint
out
end
def device(mac)
+ devices ||= {}
devices[mac.to_sym] || devices[mac.to_s]
end
def family(mac)
prefix = mac.to_s.gsub(':', '')[0,6].upcase