How to find the method name, class name and line number which triggered the query in rails 2.x

130 Views Asked by At

I need to trace the line number a method name, class name and line number which triggered the query in rails 2.x I have found the following solution but it is not compatable with rails 2.x.

How to get the line of code that triggers a query?

can any one please let me know is there any solution for this.

Even can any one plese provide information how to override default logger in rails to display caller method name and line number before every logger statement in rails 2.x

Thanks in advance

0

There are 0 best solutions below