Module: ActionView::Helpers::ToCurrencySelectTag
- Included in:
- CurrencySelectTag
- Defined in:
- lib/currency_select.rb
Overview
Tag.
Instance Method Summary collapse
Instance Method Details
#to_currency_select_tag(priority_currencies, options, html_options) ⇒ Object
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 |
# File 'lib/currency_select.rb', line 121 def to_currency_select_tag(priority_currencies, , ) = .stringify_keys add_default_name_and_id() value = if method(:value).arity.zero? value() else value(object) end content_tag( 'select', ( (value, priority_currencies), , value ), ) end |