Sha256: 711cd59c6e499282f325fa75a381ffdecdf2aa9d4e7c928ceefe9d3c6deda710
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
module Kuhsaft module Cms class AdminController < InheritedResources::Base respond_to :html layout 'kuhsaft/cms/application' before_filter :set_content_locale def set_content_locale if params[:content_locale].present? I18n.locale = params[:content_locale] end end def url_options { content_locale: I18n.locale }.merge(super) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kuhsaft-2.1.0 | app/controllers/kuhsaft/cms/admin_controller.rb |