OSDN Git Service

t#32471:add profiles
[pettanr/pettanr.git] / app / controllers / licenses_controller.rb
index 2754dd2..e530a04 100644 (file)
@@ -21,11 +21,11 @@ class LicensesController < ApplicationController
   # GET /licenses/1
   # GET /licenses/1.json
   def show
-    @license = License.show(params[:id])
+    @item = License.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.to_json(License.show_json_opt) }
+      format_prof format
+      format.json { render json: @item.to_json(License.show_json_opt) }
     end
   end