Sha256: a773246bc8557cfaeabc5debeab42174dbe99aa791ffb71c2f1e99f7869f8bbc
Contents?: true
Size: 434 Bytes
Versions: 18
Compression:
Stored size: 434 Bytes
Contents
module Workarea module I18nHelper def locale_options I18n.configured_locales.reduce([]) do |memo, locale| memo << [I18n.t(:name, locale: locale), locale] end end def switch_locale_fields result = '' params .except(:utf8, :controller, :action, :locale) .each_pair { |key, value| result << hidden_field_tag(key, value, id: nil) } result.html_safe end end end
Version data entries
18 entries across 18 versions & 1 rubygems