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.2.5 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.2.4 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.2.3 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.2.2 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.2.1 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.2.0 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.15 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.14 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.13 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.12 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.11 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.10 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.9 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.8 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.7 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.6 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.5 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.4 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.3 app/helpers/effective_form_inputs_helper.rb
effective_form_inputs-1.1.2 app/helpers/effective_form_inputs_helper.rb