OSDN Git Service

manifest view profiler
[pettanr/pettanr.git] / app / controllers / license_groups_controller.rb
index 1f0c0f8..5c2aedf 100644 (file)
@@ -9,14 +9,18 @@ class LicenseGroupsController < ApplicationController
     filer_list
   end
   
+  def show_html_format format
+    format.html {
+      @license_group = @item
+    }
+  end
+  
   def show
-    @item = LicenseGroup.show(params[:id], @operators)
+    set_show
     respond_to do |format|
-      format.html {
-        @license_group = @item
-      }
-      format_prof format
-      format.json { render json: @item.to_json(LicenseGroup.show_json_opt) }
+      show_html_format format
+      show_prof_format format
+      show_json_format format
     end
   end