Module: CountryCodeSelect::FormHelpers

Defined in:
lib/country_code_select/form_helpers.rb

Instance Method Summary collapse

Instance Method Details

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



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

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