Commit 3269e13

mo khan <mo@mokhan.ca>
2017-02-18 22:58:17
return all gyms instead of just the ones closest to you.
1 parent b531c05
Changed files (1)
app
app/controllers/gyms_controller.rb
@@ -3,9 +3,7 @@ class GymsController < ApplicationController
   before_action only: [:index] { @remote_search = true }
 
   def index
-    @gyms = paginate(
-      Gym.closest_to(current_session.location).search_with(params)
-    )
+    @gyms = paginate(Gym.search_with(params))
   end
 
   def show