Heat oil in a pan and temper with mustard seeds. After it stops spluttering, add the urad dal and saute till light brown. Add the onion, ginger, garlic, chillies and curry leaves. Fry on a medium flame till light golden in colour. Now add the tomatoes and continue to saute till it is slightly mashed.