Sha256: a08da7b1e1955fbe3c9f2d2338d08822ecffe47931cead7bcac9de36753e73b5
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
module Kiqr module Frontend module FormHelpers # Get the options for the locale form select field def options_for_locale I18n.available_locales.map do |locale| [ I18n.t("kiqr.translations.locales.#{locale}"), locale ] end end # Get the options for time zone form select field def options_for_time_zone ActiveSupport::TimeZone.all.map do |time_zone| [ time_zone.to_s, time_zone.name ] end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kiqr-0.1.0.alpha1 | lib/kiqr/frontend/form_helpers.rb |