summaryrefslogtreecommitdiff
path: root/app/models/wiki_page.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-04-09 14:35:26 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-04-09 14:35:26 +0300
commit26ec74c446e2242fe76bfe9ce84c8f86e9c46f3d (patch)
treedd363f5a381c82d5d2107400abf0f1f7e05933bb /app/models/wiki_page.rb
parentb27c42be870f55667eaa8a7152aa9e70e4e32a29 (diff)
downloadgitlab-ce-26ec74c446e2242fe76bfe9ce84c8f86e9c46f3d.tar.gz
Refactor wiki model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r--app/models/wiki_page.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb
index a7e6fea5ad0..431c1e33f55 100644
--- a/app/models/wiki_page.rb
+++ b/app/models/wiki_page.rb
@@ -19,7 +19,7 @@ class WikiPage
validates :title, presence: true
validates :content, presence: true
- # The Gitlab GollumWiki instance.
+ # The Gitlab ProjectWiki instance.
attr_reader :wiki
# The raw Gollum::Page instance.
@@ -118,7 +118,7 @@ class WikiPage
# :content - The raw markup content.
# :format - Optional symbol representing the
# content format. Can be any type
- # listed in the GollumWiki::MARKUPS
+ # listed in the ProjectWiki::MARKUPS
# Hash.
# :message - Optional commit message to set on
# the new page.
@@ -135,7 +135,7 @@ class WikiPage
#
# new_content - The raw markup content to replace the existing.
# format - Optional symbol representing the content format.
- # See GollumWiki::MARKUPS Hash for available formats.
+ # See ProjectWiki::MARKUPS Hash for available formats.
# message - Optional commit message to set on the new version.
#
# Returns the String SHA1 of the newly created page
@@ -181,5 +181,4 @@ class WikiPage
end
@persisted
end
-
end