Is it possible while using a model or otherwise to pass a block similar to what you might do for `where`, where I could end up with a statement like:
update accounts set balance = balance + 10 where id = 1; Where 10 is a variable in the code? I currently do this with locking, where I do: model.lock! model.update(balance: model.balance + 10) But I really don't need locking. I just need to add this amount to whatever the balance is at the given time. Thanks, Steve -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
