Sha256: 29d597a7b28d73440fde0052220f15e5642db18407ab8571fb584217213b60fb

Contents?: true

Size: 248 Bytes

Versions: 68

Compression:

Stored size: 248 Bytes

Contents

module EffectiveFormInputsHelper
  def price_to_currency(price)
    price = price || 0
    raise 'price_to_currency expects an Integer representing the number of cents' unless price.kind_of?(Integer)
    number_to_currency(price / 100.0)
  end
end

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
effective_form_inputs-1.1.1 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.0 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.9 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.8 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.7 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.6 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.5 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.4 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.3 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.2 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.1 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.0.0 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.8 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.7 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.6 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.5 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.4 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.3 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.2 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.9.1 app/helpers/effective_form_inputs_helper.rb