Class: Action::Project::History

Inherits:
Show
  • Object
show all
Includes:
SetProjectAndBranch, InchCI::Action
Defined in:
app/services/action/project/history.rb

Constant Summary

Constants inherited from Show

Show::MAX_SUGGESTIONS

Instance Method Summary collapse

Methods included from SetProjectAndBranch

#set_project_and_branch

Methods included from InchCI::Action

#exposures, included

Constructor Details

#initialize(params) ⇒ History

Returns a new instance of History.


13
14
15
16
17
18
19
20
# File 'app/services/action/project/history.rb', line 13

def initialize(params)
  super
  if @revision
    @builds = present(find_builds, BuildPresenter)
    @diffs = @builds.map(&:revision_diff).compact
    @code_object_map = create_code_object_map(@diffs)
  end
end