Sha256: bdf40585192bb088c24a5ee7143bf0d956734991273cb6adabf08d04937993e1

Contents?: true

Size: 446 Bytes

Versions: 33

Compression:

Stored size: 446 Bytes

Contents

class AdminCurrencyInput < SimpleForm::Inputs::Base

  include ActionView::Helpers::NumberHelper
  include AdminBaseInput

  def input
    default_input_html_options = {class: 'money',
      value: number_with_precision(@builder.object.send(attribute_name), separator: ",", precision: 2) }
    options = merge_options(default_input_html_options, input_html_options)
    return "#{@builder.text_field(attribute_name, options)}".html_safe
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
carnival-0.1.3 app/inputs/admin_currency_input.rb
carnival-0.1.2 app/inputs/admin_currency_input.rb
carnival-0.1.1 app/inputs/admin_currency_input.rb
carnival-0.1.0 app/inputs/admin_currency_input.rb
carnival-0.0.59 app/inputs/admin_currency_input.rb
carnival-0.0.58 app/inputs/admin_currency_input.rb
carnival-0.0.57 app/inputs/admin_currency_input.rb
carnival-0.0.56 app/inputs/admin_currency_input.rb
carnival-0.0.55 app/inputs/admin_currency_input.rb
carnival-0.0.54 app/inputs/admin_currency_input.rb
carnival-0.0.53 app/inputs/admin_currency_input.rb
carnival-0.0.52 app/inputs/admin_currency_input.rb
carnival-0.0.51 app/inputs/admin_currency_input.rb
carnival-0.0.50 app/inputs/admin_currency_input.rb
carnival-0.0.49 app/inputs/admin_currency_input.rb
carnival-0.0.48 app/inputs/admin_currency_input.rb
carnival-0.0.47 app/inputs/admin_currency_input.rb
carnival-0.0.45 app/inputs/admin_currency_input.rb
carnival-0.0.44 app/inputs/admin_currency_input.rb
carnival-0.0.43 app/inputs/admin_currency_input.rb