Adding note to macs json feed

This commit is contained in:
Will Bradley 2013-02-09 05:05:06 -07:00
parent 0ced399651
commit 3fb774d057

View File

@ -26,7 +26,7 @@ def index
respond_to do |format|
format.html
format.json {
@filtered_macs = Mac.select("macs.mac, users.name").where("macs.active = ? AND (macs.hidden IS NULL OR macs.hidden = ?)", true, false).joins(:user)
@filtered_macs = Mac.select("macs.mac, users.name, macs.note").where("macs.active = ? AND (macs.hidden IS NULL OR macs.hidden = ?)", true, false).joins(:user)
render :json => @filtered_macs
}
end