Sha256: cbf71cf60a472599988ac6c82551a88db8b6e874aeff28db489c0db4b7020592
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
module IntlTelInput module Helper def intl_tel_input_options(options, html_options) html_options.deep_merge({ :data => { :"intl-tel-input" => options.to_json } }) end def intl_tel_input_tag(name, value = nil, options = {}, html_options = {}) telephone_field_tag(name, value, intl_tel_input_options(options, html_options)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails-intl-tel-input-0.1.3 | lib/intl-tel-input/helper.rb |
rails-intl-tel-input-0.1.2 | lib/intl-tel-input/helper.rb |