This commit is contained in:
2012-03-28 10:17:52 +02:00
parent a18d1bd646
commit 2ca8e2c533
2258 changed files with 1888 additions and 49 deletions
@@ -1,5 +1,15 @@
module Cmtool
class ApplicationController < ::ApplicationController
before_filter :authenticate_user!
before_filter :authenticate_user!, :set_locale
private
def set_locale
if respond_to? :cmtool_locale
I18n.locale = :cmtool_locale
else
I18n.locale = :en
end
end
end
end