module I18nCountrySelect::FormHelpers
Public Instance Methods
country_code_select(object_name, method, priority_countries = nil, options = {}, html_options = {})
click to toggle source
# File lib/i18n_country_select/form_helpers.rb, line 3 def country_code_select(object_name, method, priority_countries = nil, options = {}, html_options = {}) if Rails::VERSION::MAJOR >= 4 instance_tag = ActionView::Helpers::Tags::Select.new(object_name, method, self, [], options, html_options) instance_tag.to_country_code_select_tag(priority_countries, html_options) else instance_tag = ActionView::Helpers::InstanceTag.new(object_name, method, self, options.delete(:object)) instance_tag.to_country_code_select_tag(priority_countries, html_options, options) end end