Class: QuickController

Inherits:
ApplicationController show all
Defined in:
app/controllers/quick_controller.rb

Constant Summary

Constant Summary

Constants included from ApplicationHelper

ApplicationHelper::ADMIN_MODULES, ApplicationHelper::WORKFLOW_MODULES

Instance Method Summary (collapse)

Methods included from ApplicationHelper

#access_control_roles, #admin_project_modules, #display_compact, #display_time, #equal_ids, #filter_biz_processes, #filter_system_controls, #filter_systems, #mat, #mt, #pat, #program_display, #project_modules, #render_for, #typecast_params, #yield_content!

Instance Method Details

- (Object) controls



20
21
22
23
24
25
26
# File 'app/controllers/quick_controller.rb', line 20

def controls
  @controls = Control
  if params[:s]
    @controls = @controls.search(params[:s])
  end
  @controls = @controls.all
end

- (Object) programs



4
5
6
7
8
9
10
# File 'app/controllers/quick_controller.rb', line 4

def programs
  @programs = Program
  if params[:s]
    @programs = @programs.search(params[:s])
  end
  @programs = @programs.all
end

- (Object) sections



12
13
14
15
16
17
18
# File 'app/controllers/quick_controller.rb', line 12

def sections
  @sections = Section
  if params[:s]
    @sections = @sections.search(params[:s])
  end
  @sections = @sections.all
end