Adding note to macs json feed
This commit is contained in:
parent
0ced399651
commit
3fb774d057
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user