Module: I18nCountrySelect::FormHelpers

Defined in:
lib/i18n_country_select/form_helpers.rb

Instance Method Summary collapse

Instance Method Details

#country_code_select(object_name, method, priority_countries = nil, options = {}, html_options = {}) ⇒ Object



3
4
5
# File 'lib/i18n_country_select/form_helpers.rb', line 3

def country_code_select(object_name, method, priority_countries = nil, options = {}, html_options = {})
  ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)).to_country_code_select_tag(priority_countries, options, html_options)
end