Sha256: 0dda447a3776382ae2652cacb07b509dfa36d0bf86930dfa76f83c99b7d7be7d
Contents?: true
Size: 759 Bytes
Versions: 1
Compression:
Stored size: 759 Bytes
Contents
class ClientController < ApplicationController layout "bacuview-layout" def key_sql { "name" => "name", "name-" => "name desc", "prune" => "autoprune", "prune-" => "autoprune desc", "fretain" => "fileretention", "fretain-" => "fileretention desc", "jretain" => "jobretention", "jretain-" => "jobretention desc", "uname" => "uname", "uname-" => "uname desc" } end def index @page_title = "Clients" @clients = Client.find(:all, :order => sort_key(:csort, key_sql)) end def show cid = params[:cid] @client = Client.find(cid) @page_title = "Client " + @client.name params[:action] = params[:cid] = nil end def check render(:layout => false) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bacuview-1.5 | app/controllers/client_controller.rb |