1.0.1
This commit is contained in:
parent
d378468794
commit
0541b3f3c5
25 changed files with 235 additions and 180 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue