Return only the top 3 arrangements
This commit is contained in:
parent
612cb9a789
commit
d6182392f6
@ -2,7 +2,7 @@
|
||||
|
||||
class TablesArrangementsController < ApplicationController
|
||||
def index
|
||||
render json: TablesArrangement.all.order(discomfort: :asc).limit(10).as_json(only: %i[id discomfort])
|
||||
render json: TablesArrangement.all.order(discomfort: :asc).limit(3).as_json(only: %i[id discomfort])
|
||||
end
|
||||
|
||||
def show
|
||||
|
Loading…
x
Reference in New Issue
Block a user