Methods
C
I
S
Instance Public methods
create()
# File app/controllers/compare_controller.rb, line 22
def create
  redirect_to project_compare_path(@project, params[:from], params[:to])
end
index()
# File app/controllers/compare_controller.rb, line 7
def index
end
show()
# File app/controllers/compare_controller.rb, line 10
def show
  result = Commit.compare(project, params[:from], params[:to])

  @commits       = result[:commits]
  @commit        = result[:commit]
  @diffs         = result[:diffs]
  @refs_are_same = result[:same]
  @line_notes    = []

  @commits = CommitDecorator.decorate(@commits)
end