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-0.9.0 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.18 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.17 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.16 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.15 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.14 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.13 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.12 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.11 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.10 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.9 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.8 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.7 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.6 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.5 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.4 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.3 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.2 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.1 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-0.8.0 app/helpers/effective_form_inputs_helper.rb