From 7dee787a923b67786a9c427705ac99627e79afbc Mon Sep 17 00:00:00 2001 From: Keith Duncan Date: Sun, 16 Sep 2012 15:59:49 +0100 Subject: [PATCH] Add documentation for where the commit_message parameters are passed and where they're source from --- lib/gollum/frontend/app.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/gollum/frontend/app.rb b/lib/gollum/frontend/app.rb index b163e6af..fee66f0f 100644 --- a/lib/gollum/frontend/app.rb +++ b/lib/gollum/frontend/app.rb @@ -371,6 +371,12 @@ module Precious private + # Options parameter to Gollum::Committer#initialize + # :message - The String commit message. + # :name - The String author full name. + # :email - The String email address. + # message is sourced from the incoming request parameters + # author details are sourced from the session, to be populated by rack middleware ahead of us def commit_message commit_message = { :message => params[:message] } author_parameters = session['gollum.author']