summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v2/cakes_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v2/cakes_controller.rb b/app/controllers/api/v2/cakes_controller.rb
index ec38e753..4c85fd90 100644
--- a/app/controllers/api/v2/cakes_controller.rb
+++ b/app/controllers/api/v2/cakes_controller.rb
@@ -7,7 +7,7 @@ module Api
end
def index
- @cakes = @repository.search_with(params).includes(:category).page(page).per(per_page)
+ @cakes = paginate(@repository.search_with(params).includes(:category))
end
def show(id = params[:id])