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
|
||||
other: Administradores
|
||||
|
||||
balance:
|
||||
one: Saldo
|
||||
other: Saldos
|
||||
|
||||
fiat_balance:
|
||||
one: Saldo Fiat
|
||||
other: Saldos Fiat
|
||||
@@ -39,19 +35,12 @@ pt-BR:
|
||||
last_name: Último nome
|
||||
full_name: Nome completo
|
||||
|
||||
balance:
|
||||
amount: Quantia
|
||||
|
||||
fiat_balance:
|
||||
amount_formatted: Quantia
|
||||
amount_cents: Quantia
|
||||
|
||||
errors:
|
||||
models:
|
||||
balance:
|
||||
attributes:
|
||||
amount:
|
||||
greater_than_or_equal_to: saldo insuficiente
|
||||
fiat_balance:
|
||||
attributes:
|
||||
amount_cents:
|
||||
|
||||
Reference in New Issue
Block a user