Sha256: bc2dc7df1a6e98502438da1f08346a7da35ce15fdcadfd93fd47afd645a9784a

Contents?: true

Size: 389 Bytes

Versions: 2

Compression:

Stored size: 389 Bytes

Contents

load File.join(Gem.loaded_specs['forgeos_core'].full_gem_path, 'app', 'helpers', 'application_helper.rb')
module ApplicationHelper
  def price_with_currency(price=0, precision=2)
    price = (price * current_currency.to_exchanges_rate(Currency::default).rate) unless current_currency.default?
    number_to_currency price, :precision => precision, :unit => current_currency.html
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
forgeos_commerce-1.9.1.rc1 app/helpers/application_helper.rb
forgeos_commerce-1.9.0 app/helpers/application_helper.rb