ActionController::Base
# File app/controllers/application_controller.rb, line 35
35: def default_url_options
36: { :locale => I18n.locale }
37: end
# File app/controllers/application_controller.rb, line 23
23: def set_i18n_locale_from_params
24: if params[:locale]
25: if I18n.available_locales.include?(params[:locale].to_sym)
26: I18n.locale = params[:locale]
27: else
28: flash.now[:notice] =
29: "#{params[:locale]} překlad není k dispozici"
30: logger.error flash.now[:notice]
31: end
32: end
33: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.