OSDN Git Service

t#32471:add profiles
[pettanr/pettanr.git] / app / controllers / license_groups_controller.rb
index 41787c2..262035d 100644 (file)
@@ -21,11 +21,11 @@ class LicenseGroupsController < ApplicationController
   # GET /license_groups/1
   # GET /license_groups/1.json
   def show
-    @license_group = LicenseGroup.show(params[:id])
+    @item = LicenseGroup.show(params[:id])
     respond_to do |format|
       format.html # show.html.erb
-      format.prof  { render :template => 'top/prof', :layout => true }
-      format.json { render json: @license_group.to_json(LicenseGroup.show_json_opt) }
+      format_prof format
+      format.json { render json: @item.to_json(LicenseGroup.show_json_opt) }
     end
   end