2 points · by bnorton · 13y ago · 2 comments
User.where(:email => email).first.tap_if(:present?) {|user| user.send_update }
GitHub - bnorton/tap_if: Tap into a object but only execute the block if the condition is truthy.
Tap into a object but only execute the block if the condition is truthy. - bnorton/tap_if
GitHub