app.rb: mark non-route methods as private.

This commit is contained in:
Dawa Ometto
2017-04-27 23:32:16 +02:00
parent 9b7028a74e
commit f6273ded80
+2 -2
View File
@@ -484,6 +484,8 @@ module Precious
show_page_or_file(params[:splat].first) show_page_or_file(params[:splat].first)
end end
private
def show_page_or_file(fullpath) def show_page_or_file(fullpath)
wiki = wiki_new wiki = wiki_new
@@ -532,8 +534,6 @@ module Precious
wiki.update_page(page, name, format, content.to_s, commit) wiki.update_page(page, name, format, content.to_s, commit)
end end
private
# Options parameter to Gollum::Committer#initialize # Options parameter to Gollum::Committer#initialize
# :message - The String commit message. # :message - The String commit message.
# :name - The String author full name. # :name - The String author full name.