On 12 October 2012 22:15, Javix <
s.ca...@gmail.com> wrote:
> What is the best way to implement a validation for a withdrawal operation?
> So there is an Operation and Client models.
> Client has_many :operations. In case of withdrawal operation, I'd like to
> check if the requested sum is not greater than a Client account balance. How
> to link the validation in the Operation model to a specific client ?