Search code examples
ruby-on-railsrails-cells

Use Rails benchmark in Cells


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.


Solution

  • I found out that I can call self.benchmark instead (instance method), which is different to Rails where it is a class method.