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