On Sun, Apr 06, 2014 at 08:02:26PM -0700, m4tu5 wrote:
> > +    event :pagar do
> > +      transition :emitida  => :pagada
> > +      transition :aplicada => :pagada, unless: :se_pago?
> > +    end
> > +
> > +    event :aplicar do
> > +      transition :emitida => :aplicada
> > +      transition :pagada  => :aplicada, unless: :fue_usada_como_pago?
> > +    end
> > +
> > +    event :cerrar do
> > +      transition :aplicada  => :cerrada, if: :se_pago?
> > +      transition :pagada    => :cerrada, if: :fue_usada_como_pago?
> > +    end
> > +
> > +    after_transition to: [:aplicada, :cerrada], do: :cerrar
> 
> esto no es
> `after_transition to: [:aplicada, :pagada], do: :cerrar

qué lindo que es el peer review

--