remove BalancePolicy
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
# frozen_string_literal: true
|
|
||||||
class BalancePolicy < ApplicationPolicy
|
|
||||||
class Scope < Scope
|
|
||||||
def resolve
|
|
||||||
return scope.none if user.nil?
|
|
||||||
|
|
||||||
scope.where(user_id: user.id)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
||||||
@@ -9,10 +9,6 @@ pt-BR:
|
|||||||
one: Administrador
|
one: Administrador
|
||||||
other: Administradores
|
other: Administradores
|
||||||
|
|
||||||
balance:
|
|
||||||
one: Saldo
|
|
||||||
other: Saldos
|
|
||||||
|
|
||||||
fiat_balance:
|
fiat_balance:
|
||||||
one: Saldo Fiat
|
one: Saldo Fiat
|
||||||
other: Saldos Fiat
|
other: Saldos Fiat
|
||||||
@@ -39,19 +35,12 @@ pt-BR:
|
|||||||
last_name: Último nome
|
last_name: Último nome
|
||||||
full_name: Nome completo
|
full_name: Nome completo
|
||||||
|
|
||||||
balance:
|
|
||||||
amount: Quantia
|
|
||||||
|
|
||||||
fiat_balance:
|
fiat_balance:
|
||||||
amount_formatted: Quantia
|
amount_formatted: Quantia
|
||||||
amount_cents: Quantia
|
amount_cents: Quantia
|
||||||
|
|
||||||
errors:
|
errors:
|
||||||
models:
|
models:
|
||||||
balance:
|
|
||||||
attributes:
|
|
||||||
amount:
|
|
||||||
greater_than_or_equal_to: saldo insuficiente
|
|
||||||
fiat_balance:
|
fiat_balance:
|
||||||
attributes:
|
attributes:
|
||||||
amount_cents:
|
amount_cents:
|
||||||
|
|||||||
Reference in New Issue
Block a user