Class: CurrencyInput

Inherits:
SimpleForm::Inputs::Base
  • Object
show all
Defined in:
app/inputs/currency_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



2
3
4
5
6
7
# File 'app/inputs/currency_input.rb', line 2

def input(wrapper_options)
  currency = options.delete(:currency) || default_currency
  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

  (:div, input_group(currency, merged_input_options), class: "input-group")
end