handle add/remove homies in backend

This commit is contained in:
Bilal
2020-09-12 01:26:56 +03:00
parent 2a5ffac5b9
commit 013e4d144d
6 changed files with 42 additions and 20 deletions

View File

@@ -1,6 +1,6 @@
class ChipsController < ApplicationController
def index
json_response Chip.all.order(:name).to_json(include: :base_chip_values)
json_response Chip.where(enabled: true).order(:name).to_json(include: :base_chip_values)
end
def create