Revert "Merge branch 'transform-currency-support' into 'master'"

This reverts merge request !14
This commit is contained in:
Bilal Catic
2020-10-06 06:26:23 +00:00
parent cec435f052
commit fcce2b678f
18 changed files with 52 additions and 286 deletions

View File

@@ -1,29 +1,6 @@
class ChipsController < ApplicationController
def index
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
json_response Chip.where(enabled: true).order(:name).to_json(include: :base_chip_values)
end
def create