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
5 before_filter :authenticate_admin, :only => [:new, :create, :edit, :update, :destroy]
23 def show_html_format format
31 respond_to do |format|
32 show_html_format format
33 show_prof_format format
34 show_json_format format
39 @licenses = License.list_by_name(params[:name])
41 respond_to do |format|
43 format.json { render json: @licenses.to_json }
51 def count_by_license_group
55 def count_by_system_picture