Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Sato <sathiroyuki@gmail.com>2017-07-27 16:00:06 +0300
committerHiroyuki Sato <sathiroyuki@gmail.com>2017-07-27 16:15:48 +0300
commit35259a4f48e19a19437be10c02eb8398c108d507 (patch)
tree99dab3d70660bc6e82ccca757843fa43e93b9032 /app/views/projects/wikis
parent5c51db0bce6d0f1b94aaf14d1ac9c8d70f7f9468 (diff)
Encapsulate the commit.sha logic
Diffstat (limited to 'app/views/projects/wikis')
-rw-r--r--app/views/projects/wikis/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml
index 5c335ba306b..adb8d5aaecb 100644
--- a/app/views/projects/wikis/_form.html.haml
+++ b/app/views/projects/wikis/_form.html.haml
@@ -5,7 +5,7 @@
= f.hidden_field :title, value: @page.title
- if @page.persisted?
- = f.hidden_field :last_commit_sha, value: @page.commit.sha
+ = f.hidden_field :last_commit_sha, value: @page.last_commit_sha
.form-group
.col-sm-12= f.label :format, class: 'control-label-full-width'
.col-sm-12