diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2018-07-02 10:43:06 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2018-07-09 21:13:08 +0800 |
commit | 4ee08b77bc5ae11553d59c182ea8292b77699115 (patch) | |
tree | 3aac1871cd8dcefc88d52f11dcacbf238b2340a9 /app/models/wiki_page.rb | |
parent | 612f5e63b3cf76c354e50f4aa6c4163e5465b115 (diff) | |
download | gitlab-ce-4ee08b77bc5ae11553d59c182ea8292b77699115.tar.gz |
Updates from `rubocop -a`
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r-- | app/models/wiki_page.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index cde79b95062..6cd3993a56d 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -190,7 +190,7 @@ class WikiPage # Returns the String SHA1 of the newly created page # or False if the save was unsuccessful. def create(attrs = {}) - update_attributes(attrs) + update(attrs) save(page_details: title) do wiki.create_page(title, content, format, message) @@ -216,7 +216,7 @@ class WikiPage raise PageChangedError end - update_attributes(attrs) + update(attrs) if title_changed? page_details = title |