Increasing visible detail of mac log

This commit is contained in:
2014-06-24 12:20:17 -07:00
parent 3a028ca7fc
commit 1d6699ae9f
3 changed files with 36 additions and 3 deletions

View File

@@ -4,6 +4,10 @@ before_filter :authenticate_user!
def index
@mac_logs = MacLog.desc.limit(1000)
@macs = {}
@mac_logs.each do |log|
@macs.merge!({log.mac => Mac.find_by_mac(log.mac)})
end
end
end