Class: AdminCurrencyInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- AdminCurrencyInput
- Includes:
- ActionView::Helpers::NumberHelper, AdminBaseInput
- Defined in:
- app/inputs/admin_currency_input.rb
Instance Method Summary collapse
Methods included from AdminBaseInput
Instance Method Details
#input(wrapper_options) ⇒ Object
6 7 8 9 10 11 |
# File 'app/inputs/admin_currency_input.rb', line 6 def input() = {class: 'money', value: number_with_precision(@builder.object.send(attribute_name), separator: ",", precision: 2) } = (, ) return "#{@builder.text_field(attribute_name, )}".html_safe end |