This commit is contained in:
Dmitriy Zaporozhets 2011-10-15 01:11:15 +03:00
parent d378468794
commit 0541b3f3c5
25 changed files with 235 additions and 180 deletions

View file

@ -41,4 +41,24 @@ class ApplicationController < ActionController::Base
super
end
end
def load_refs
@branch = unless params[:branch].blank?
params[:branch]
else
nil
end
@tag = unless params[:tag].blank?
params[:tag]
else
nil
end
@ref = @branch || @tag || "master"
end
def render_404
render :file => File.join(Rails.root, "public", "404"), :layout => false, :status => "404"
end
end