rails-routes-js-utils 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
|
|
2
2
|
window.Routes = {};
|
3
3
|
window.AllRoutes = [];
|
4
4
|
function addRouteToEnv(obj) {
|
5
|
-
window.Routes[obj.name+'_path'] = obj.
|
5
|
+
window.Routes[obj.name+'_path'] = obj.path;
|
6
6
|
window.AllRoutes.push({path: obj.path,reqs: obj.reqs});
|
7
7
|
}
|
8
8
|
<%= Rails::Routes::Js::Utils.generate %>
|