aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorMatthew Landauer <matthew@openaustralia.org>2013-02-24 10:10:03 +1100
committerMatthew Landauer <matthew@openaustralia.org>2013-02-24 10:54:42 +1100
commit0d78ef90a85d11a0bd5d9c092292c829968470ab (patch)
tree082938723961aaa7de42918a07999005cd57dccf /app/controllers/application_controller.rb
parent2a193d3bc74b812bd9ddee9d7520ca1e98007511 (diff)
Extract method
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb
index f3deeb64a..f5d6cbf18 100644
--- a/app/controllers/application_controller.rb
+++ b/app/controllers/application_controller.rb
@@ -562,6 +562,11 @@ class ApplicationController < ActionController::Base
def set_popup_banner
@popup_banner = render_to_string(:partial => "general/popup_banner").strip.html_safe
end
+
+ def alaveteli_git_commit
+ `git log -1 --format="%H"`.strip
+ end
+
# URL generating functions are needed by all controllers (for redirects),
# views (for links) and mailers (for use in emails), so include them into
# all of all.