class MacLogsController < ApplicationController load_and_authorize_resource :mac_log before_filter :authenticate_user! def index @mac_logs = MacLog.desc.limit(1000) end end