diff options
author | blackst0ne <blackst0ne.ru@gmail.com> | 2017-03-14 07:24:30 +1100 |
---|---|---|
committer | blackst0ne <blackst0ne.ru@gmail.com> | 2017-03-14 07:24:30 +1100 |
commit | 37ce638ccd476144fe9235a4d091be4135a3e00a (patch) | |
tree | bcaf6fb5be3237518fec8c6dc82f4cfdfba382a4 | |
parent | 42151a15df1b920f7092e3f7c6f31cb24136cff9 (diff) | |
download | gitlab-ce-37ce638ccd476144fe9235a4d091be4135a3e00a.tar.gz |
Use dig
-rw-r--r-- | app/views/projects/new.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 560e3439fc2..d129da943f8 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -1,6 +1,6 @@ - page_title 'New Project' - header_title "Projects", dashboard_projects_path -- visibility_level = params.try(:[], :project).try(:[], :visibility_level) || default_project_visibility +- visibility_level = params.dig(:project, :visibility_level) || default_project_visibility .project-edit-container .project-edit-errors |