From 005250f330797f34c4941d1b14a2214f61089d26 Mon Sep 17 00:00:00 2001 From: Devin Howard Date: Tue, 9 Feb 2016 11:26:42 +0800 Subject: [PATCH] typo --- app/controllers/maps_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/maps_controller.rb b/app/controllers/maps_controller.rb index 05123fdb..5be69133 100644 --- a/app/controllers/maps_controller.rb +++ b/app/controllers/maps_controller.rb @@ -13,7 +13,7 @@ class MapsController < ApplicationController @current = current_user @maps = [] - page = params[:page].present ? params[:page] : 1 + page = params[:page].present? ? params[:page] : 1 if request.path.index("/explore/active") != nil @maps = Map.where("maps.permission != ?", "private").order("updated_at DESC").page(page).per(20)