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
+3 -3
View File
@@ -47,7 +47,7 @@ module Precious
register Mustache::Sinatra
include Precious::Helpers
dir = File.dirname(File.expand_path(__FILE__))
dir = File.dirname(File.expand_path(__FILE__))
# We want to serve public assets for now
set :public_folder, "#{dir}/public/gollum"
@@ -484,6 +484,8 @@ module Precious
show_page_or_file(params[:splat].first)
end
private
def show_page_or_file(fullpath)
wiki = wiki_new
@@ -532,8 +534,6 @@ module Precious
wiki.update_page(page, name, format, content.to_s, commit)
end
private
# Options parameter to Gollum::Committer#initialize
# :message - The String commit message.
# :name - The String author full name.