branch/tag memorization
This commit is contained in:
parent
912a383d9b
commit
fc34fc86c6
5 changed files with 26 additions and 0 deletions
|
@ -41,4 +41,13 @@ class ApplicationController < ActionController::Base
|
|||
super
|
||||
end
|
||||
end
|
||||
|
||||
def refs_from_cookie
|
||||
# branch is high priority so we should reset
|
||||
# it if tag selected
|
||||
cookies[:branch] = nil if params[:tag]
|
||||
|
||||
params[:branch] ||= cookies[:branch]
|
||||
params[:tag] ||= cookies[:tag]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue