Sha256: 90d482fa306a43a9e13f6cdafb27d6c3a7a4f56b5fd044113b2365c03685ce75

Contents?: true

Size: 263 Bytes

Versions: 2

Compression:

Stored size: 263 Bytes

Contents

module I18nController
  def set_locale
    I18n.locale = params[:i18n_locale]
  end
  
  def default_url_options(options={})
    { :i18n_locale => I18n.locale }
  end  
  
  def self.default_url_options(options={})
    { :i18n_locale => I18n.locale }
  end  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecm_cms_core-0.0.3 test/dummy/lib/i18n_controller.rb
ecm_cms_core-0.0.2 test/dummy/lib/i18n_controller.rb