Коллеги, что скажите на счет такого:
class CloudPayments::Client::ReasonedGatewayError
def message
key = self.class.name.split('::').last
I18n.t key, scope: 'cloud_payments.errors'
end
end
class CloudPayments::Transaction
def amount_money
amount.to_money(currency)
end
end
Стоит вливать в gem?