1 class LicenseGroupsController < ApplicationController
2 layout 'test' if Pettanr::TestLayout
3 before_filter :authenticate_admin!, :only => [:list, :browse]
6 # GET /license_groups.json
8 @license_groups = LicenseGroup.list({})
10 respond_to do |format|
11 format.html # index.html.erb
12 format.json { render json: @license_groups.to_json(LicenseGroup.list_json_opt) }
16 # GET /license_groups/1
17 # GET /license_groups/1.json
19 @license_group = LicenseGroup.show(params[:id])
20 respond_to do |format|
21 format.html # show.html.erb
22 format.json { render json: @license_group.to_json(LicenseGroup.show_json_include_opt) }
27 @license_groups = LicenseGroup.all
29 respond_to do |format|
30 format.html { render layout: 'system' }
35 @license_group = LicenseGroup.find(params[:id])
37 respond_to do |format|
38 format.html { render layout: 'system' }