Class: CurrencyInput

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

Instance Method Summary collapse

Instance Method Details

#inputObject



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

def input
  input_field = @builder.text_field(attribute_name, input_html_options)
end

#input_html_optionsObject



8
9
10
# File 'app/inputs/currency_input.rb', line 8

def input_html_options
  merge_formatted_value(super)
end