]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/traces_controller.rb
Make "include" and "limit" keyword args of pagination method
[rails.git] / app / controllers / traces_controller.rb
index 3539b6032a35624911725b11ba9fc5fdd6591f4f..42aea82999e4856d822d15a2ef4cac7feb894986 100644 (file)
@@ -61,7 +61,7 @@ class TracesController < ApplicationController
 
     @params = params.permit(:display_name, :tag, :before, :after)
 
-    @traces, @newer_traces_id, @older_traces_id = get_page_items(traces, [:user, :tags])
+    @traces, @newer_traces_id, @older_traces_id = get_page_items(traces, :includes => [:user, :tags])
 
     # final helper vars for view
     @target_user = target_user