diff options
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 |