Sha256: 4aea564519f45e6e458ee98b368b6dad7a2191f3cabb9ed49d9ff3257d59a6e8

Contents?: true

Size: 319 Bytes

Versions: 31

Compression:

Stored size: 319 Bytes

Contents

module ShopHelper
  def input_currency(amount)
    number_to_currency(amount, :unit => '', :delimiter => '')
  end
  
  def routes_to_js(routes)
    js = "ROUTES = new Array;\n"
    @routes.each do |route|
      js << "ROUTES[#{route[:name].to_json}] = #{route[:path].to_json}\n"
    end
    javascript_tag js
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
radiant-shop-extension-0.94.8 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.7 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.6 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.5 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.4 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.3 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.2 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.1 app/helpers/shop_helper.rb
radiant-shop-extension-0.94.0 app/helpers/shop_helper.rb
radiant-shop-extension-0.93.3 app/helpers/shop_helper.rb
radiant-shop-extension-0.93.2 app/helpers/shop_helper.rb
radiant-shop-extension-0.93.1 app/helpers/shop_helper.rb
radiant-shop-extension-0.93.0 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.11 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.10 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.9 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.8 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.7 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.6 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.3 app/helpers/shop_helper.rb