app.rb: mark non-route methods as private.
This commit is contained in:
+2
-2
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user