I want use Rails own controller benchmarking method in Cells. I tried include ActiveSupport::Benchmarkable in the cells controller. However calling self.class.benchmark gives “no method exists” error.
I want use Rails own controller benchmarking method in Cells. I tried include ActiveSupport::Benchmarkable
Share
I found out that I can call
self.benchmarkinstead (instance method), which is different to Rails where it is a class method.