diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index 406bf28c..5410c244 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -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.