Added '_path' to routes so you say Routes.bookings_path() instead of Routes.booking()
This commit is contained in:
parent
ab7f7f1b53
commit
3c50f3c5ce
|
@ -205,7 +205,7 @@
|
||||||
this.named.push(route);
|
this.named.push(route);
|
||||||
this.named[route.name] = route;
|
this.named[route.name] = route;
|
||||||
|
|
||||||
this[route.name] = (function(route){
|
this[route.name + '_path'] = (function(route){
|
||||||
var fn = function(){
|
var fn = function(){
|
||||||
var params = {},
|
var params = {},
|
||||||
options = {},
|
options = {},
|
||||||
|
|
Loading…
Reference in a new issue