48
49
50
51
52
53
54
55
56
|
# File 'lib/i18n_plus/currency.rb', line 48
def to_currency_select_tag(priority_currency_codes, options, html_options)
options.symbolize_keys!
html_options.stringify_keys!
add_default_name_and_id(html_options)
_, value = option_text_and_value(object)
selected_value = options.has_key?(:selected) ? options[:selected] : value
opts = add_options(currency_options_for_select(selected_value, *priority_currency_codes), options, value)
content_tag(:select, opts, html_options)
end
|