mercredi 26 août 2015

foo(:bar) if foo(:bar) != 0 the rails-way?

I have this if-condition:

foo(:bar) if foo(:bar) != 0

and I asked myself if there is a better "rails-/ruby-way" to express this condition? (Without calling the foo(:bar) twice?)

Aucun commentaire:

Enregistrer un commentaire