Fix load_refs in ApplicationController after default_branch change

As a last resort it was calling a method that didn't exist. Woops!
This commit is contained in:
Robert Speicher 2012-09-05 01:12:44 -04:00
parent 861a51488a
commit a9f275bc20

View file

@ -124,7 +124,7 @@ class ApplicationController < ActionController::Base
if params[:ref].blank? if params[:ref].blank?
@branch = params[:branch].blank? ? nil : params[:branch] @branch = params[:branch].blank? ? nil : params[:branch]
@tag = params[:tag].blank? ? nil : params[:tag] @tag = params[:tag].blank? ? nil : params[:tag]
@ref = @branch || @tag || @project.try(:default_branch) || Repository.default_ref @ref = @branch || @tag || @project.try(:default_branch) || 'master'
else else
@ref = params[:ref] @ref = params[:ref]
end end