From 72724c8da575a77fc30617ff2de91c1b63d512e4 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Mon, 3 Mar 2014 01:11:04 -0800 Subject: [PATCH] recently active maps --- app/controllers/main_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/main_controller.rb b/app/controllers/main_controller.rb index f7e9708a..c450bdfc 100644 --- a/app/controllers/main_controller.rb +++ b/app/controllers/main_controller.rb @@ -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)