Sha256: 4cb5f8efbd61b32481b174faeb0af842c7766b4c85e14edfeffec8bba8b273a3
Contents?: true
Size: 429 Bytes
Versions: 12
Compression:
Stored size: 429 Bytes
Contents
module Kuhsaft module Cms class AdminController < ActionController::Base respond_to :html layout 'kuhsaft/cms/application' before_filter :set_content_locale def url_options { content_locale: I18n.locale }.merge(super) end def set_content_locale if params[:content_locale].present? I18n.locale = params[:content_locale] end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems