1 class LicensesController < ApplicationController
2 before_filter :authenticate_resource_reader, :only => [
3 :by_license_group, :by_system_picture, :count_by_license_group, :count_by_system_picture
23 @item = License.show(params[:id], @operators)
24 respond_to do |format|
29 format.json { render json: @item.to_json(License.show_json_opt) }
34 @licenses = License.list_by_name(params[:name])
36 respond_to do |format|
38 format.json { render json: @licenses.to_json }
46 def count_by_license_group
50 def count_by_system_picture