Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## what is the difference between this:
- if !Trans.count("*", :conditions => ["paypal_transaction_id = ?", notify.transaction_id]).zero?
- # do something
- end
- ## and this?
- if Trans.all.map(&:paypal_transaction_id).include?(notify.transaction_id)
- # do something
- end
Add Comment
Please, Sign In to add comment