diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-26 21:27:42 +0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-07-27 19:52:45 +0300 |
commit | ea4d6c87d73301ade3e49f8f865eb448ecc8a569 (patch) | |
tree | 2148ac9290b91b7fa0594b101f6a05f7893eafc3 /app/views/projects/update.js.haml | |
parent | 6dfaf4fe547104a553522a1904a321dd6d015a09 (diff) |
Fix Project#to_param to keep invalid project suitable for use in URLs
Diffstat (limited to 'app/views/projects/update.js.haml')
-rw-r--r-- | app/views/projects/update.js.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/update.js.haml b/app/views/projects/update.js.haml index 938d44efe29..dcf1f767bf7 100644 --- a/app/views/projects/update.js.haml +++ b/app/views/projects/update.js.haml @@ -1,4 +1,4 @@ -- if @project.errors.blank? +- if @project.valid? :plain location.href = "#{edit_namespace_project_path(@project.namespace, @project)}"; - else |