diff options
| author | Marc Florisson | 2014-10-31 14:21:51 +0100 |
|---|---|---|
| committer | Marc Florisson | 2014-10-31 14:21:51 +0100 |
| commit | 5a44dcc0ee3fb8a65964b7ee39cfc67c5376f681 (patch) | |
| tree | d8b424b7e28990d6d01b843fb6d4a631b1091d3a /app/controllers | |
| parent | 7a6399861d75c2ff9d6d2467bfba89ed037ed105 (diff) | |
| download | chouette-core-5a44dcc0ee3fb8a65964b7ee39cfc67c5376f681.tar.bz2 | |
allow help access for every body. Mantis 29774
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/help_controller.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb index 91e8088de..7d4c3409d 100644 --- a/app/controllers/help_controller.rb +++ b/app/controllers/help_controller.rb @@ -1,4 +1,11 @@ -class HelpController < ApplicationController +class HelpController < ActionController::Base + layout "application" + protect_from_forgery + before_filter :set_locale + + def set_locale + I18n.locale = session[:language] || I18n.default_locale + end def show @page = HelpPage.find(slug) |
