handle onboarding and chip selection for Og

This commit is contained in:
Bilal
2020-09-18 19:13:04 +03:00
committed by Senad Uka
parent a9730dd69a
commit 8f75572b47
6 changed files with 79 additions and 3 deletions

View File

@@ -1,6 +1,29 @@
class ChipsController < ApplicationController
def index
json_response Chip.where(enabled: true).order(:name).to_json(include: :base_chip_values)
all_chips = [
{
id: 1,
name: 'US Dollar',
symbol: '$',
code: 'USD',
prefixed: true
},
{
id: 2,
name: 'Bosnian Convertible Mark',
symbol: 'KM',
code: 'BAM',
prefixed: false
},
{
id: 3,
name: 'Euro',
symbol: '€',
code: 'EUR',
prefixed: false
}
]
json_response all_chips
end
def create