OSDN Git Service

mrg
[pettanr/pettanr.git] / app / controllers / application_controller.rb
index f5c7062..bbdd2e8 100644 (file)
@@ -180,7 +180,7 @@ class ApplicationController < ActionController::Base
   end
   
   def show_json_format_for_root format
-    format.json { render json: @item.attributes.to_json(@my_model_class.show_json_opt_for_root) }
+    format.json { render json: @item.to_json(@my_model_class.show_json_opt_for_root) }
   end
   
   def set_new