diff options
author | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-04-14 12:09:47 +0000 |
---|---|---|
committer | Sato Hiroyuki <sathiroyuki@gmail.com> | 2013-05-13 18:44:33 +0900 |
commit | c0e3b39792cb7ad479af66c07685eb37e654ccb6 (patch) | |
tree | c574680995d385213205c63e8f8e6fb44e38b574 /app/views/shared/_ref_switcher.html.haml | |
parent | 97a9c2293affaeeba6f448b8760bb5dffd170f2c (diff) | |
download | gitlab-ce-c0e3b39792cb7ad479af66c07685eb37e654ccb6.tar.gz |
Set @options in assing_ref_vars
@options enable to keep params when switching ref.
Diffstat (limited to 'app/views/shared/_ref_switcher.html.haml')
-rw-r--r-- | app/views/shared/_ref_switcher.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/shared/_ref_switcher.html.haml b/app/views/shared/_ref_switcher.html.haml index 8b44cf1944e..dc8c656e12e 100644 --- a/app/views/shared/_ref_switcher.html.haml +++ b/app/views/shared/_ref_switcher.html.haml @@ -3,3 +3,5 @@ = hidden_field_tag :destination, destination - if defined?(path) = hidden_field_tag :path, path + - @options && @options.each do |key, value| + = hidden_field_tag key, value, id: nil |