Sha256: eb96b9b498a2a3fcd580d8a26f0aa73f78d473c9ea91db8465c8e50f05459745
Contents?: true
Size: 718 Bytes
Versions: 1
Compression:
Stored size: 718 Bytes
Contents
require "action_view/helpers/asset_tag_helper" # encoding: utf-8 module MgcaHelper def address_fields_for( fff, options = {} ) options.merge({f: fff}) return render partial: "magic_addresses/addresses/fields/address", locals: options end def country_flag( lcl = I18n.locale.to_s, format = "small" ) format = "medium" unless %w(small medium large).include?(format) lcl = "xx" unless %w(at by be ba bg ca hr cy cz dk fi fr de gr hu ie it lv li lt lu nl no pl pt ro ru rs sk si es se ch ua gb us).include?( lcl.to_s.downcase ) raw( image_tag( "flags/countries/#{format}/flag-#{lcl.to_s.downcase}.png", class: "flag" ) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
magic_addresses-0.0.1 | lib/helpers/mgca_helper.rb |