diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2011-01-13 19:18:56 +0000 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2011-03-10 10:06:41 +0000 |
commit | 59462ac90b067dd67b0908b9924b23eb74a505bd (patch) | |
tree | ee35ba587ee3345ab64feb870f7bf220695573cc /app/controllers/application_controller.rb | |
parent | 92e3dbbfdfdca9b34683ada7eb0127b550732fe5 (diff) |
make site_name a globally available helper
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 4252d4212..1628d2f31 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -13,9 +13,17 @@ class ApplicationController < ActionController::Base # Standard headers, footers and navigation for whole site layout "default" before_filter :set_gettext_locale + # scrub sensitive parameters from the logs filter_parameter_logging :password + helper_method :site_name + def site_name + # XXX should come from database: + site_name = "WhatDoTheyKnow" + return site_name + end + # Help work out which request causes RAM spike. # http://www.codeweblog.com/rails-to-monitor-the-process-of-memory-leaks-skills/ # This shows the memory use increase of the Ruby process due to the request. |