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.92.2 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.1 app/helpers/shop_helper.rb
radiant-shop-extension-0.92.0 app/helpers/shop_helper.rb
radiant-shop-extension-0.91.7 app/helpers/shop_helper.rb
radiant-shop-extension-0.91.4 app/helpers/shop_helper.rb
radiant-shop-extension-0.91.3 app/helpers/shop_helper.rb
radiant-shop-extension-0.91.2 app/helpers/shop_helper.rb
radiant-shop-extension-0.90.4 app/helpers/shop_helper.rb
radiant-shop-extension-0.90.2 app/helpers/shop_helper.rb
radiant-shop-extension-0.90.1 app/helpers/shop_helper.rb
radiant-shop-extension-0.90.0 app/helpers/shop_helper.rb