OSDN Git Service

add profiler
[pettanr/pettanr.git] / app / controllers / application_controller.rb
index f1da1ce..42e8780 100644 (file)
@@ -165,7 +165,7 @@ class ApplicationController < ActionController::Base
   def show_prof_format format
     format.prof {
       self.formats = [:html]
-      @profiler = Locmare::Profiler.new @my_model.model_name, @item, @operators
+      @profiler = Locmare::Profiler.new @my_model.item_name, @item, @operators
       render @profiler.template_name, :locals => {
         :profiler => @profiler
       }