Methods
Instance Public methods
create()
Link
Source: show
# File app/controllers/compare_controller.rb, line 22 def create redirect_to project_compare_path(@project, params[:from], params[:to]) end
show()
Link
Source: 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