mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-21 14:19:39 +02:00
* Add step method to currency * Change amount placeholder and step, when currency select change * Lint * Add test with auth * Extract request to specific service
6 lines
258 B
Ruby
6 lines
258 B
Ruby
class CurrenciesController < ApplicationController
|
|
def show
|
|
@currency = Money::Currency.all_instances.find { |currency| currency.iso_code == params[:id] }
|
|
render json: { step: @currency.step, placeholder: Money.new(0, @currency).format }
|
|
end
|
|
end
|