Class: BuildsController

Inherits:
ApplicationController show all
Includes:
InchCI::Controller
Defined in:
app/controllers/builds_controller.rb

Instance Method Summary collapse

Methods included from InchCI::Controller

#expose

Instance Method Details

#history_showObject


13
14
15
16
# File 'app/controllers/builds_controller.rb', line 13

def history_show
  view = Action::Build::Show.new(params, load_diff: true)
  expose view
end

#indexObject


8
9
10
11
# File 'app/controllers/builds_controller.rb', line 8

def index
  view = Action::BuildHistory.new(params)
  expose view
end

#showObject


18
19
20
21
22
# File 'app/controllers/builds_controller.rb', line 18

def show
  view = Action::Build::Show.new(params)
  expose view
  render :json => @build
end