recently active maps

This commit is contained in:
Connor Turland 2014-03-03 01:11:04 -08:00
parent 19df96cb77
commit 72724c8da5

View file

@ -16,7 +16,7 @@ class MainController < ApplicationController
@maps = Map.find_all_by_featured(true).shuffle!
@maps = @maps.slice(0,3)
elsif authenticated?
@maps = Map.order("updated_at DESC").limit(3)
@maps = Map.order("updated_at DESC").where("permission != ?", "private").limit(3)
end
respond_with(@maps, @current)