Sha256: 9102312828de5ee6a5b353372a72b2b5506505a9f1be6360a6c80d85e5f27105
Contents?: true
Size: 449 Bytes
Versions: 17
Compression:
Stored size: 449 Bytes
Contents
module RailsTools module I18nController def set_locale I18n.locale = params[:i18n_locale] end def default_url_options(options = {}) { :i18n_locale => I18n.locale } end def self.included(base) base.before_filter :set_locale base.extend(ClassMethods) end module ClassMethods def self.default_url_options(options = {}) { :i18n_locale => I18n.locale } end end end end
Version data entries
17 entries across 17 versions & 1 rubygems