Permalink
Browse files

Removed unused and commented code from action helper code

  • Loading branch information...
1 parent 3b00f35 commit 030995c5ee7689bddc7db980d61dd746a47539e7 @larzconwell larzconwell committed Dec 5, 2012
Showing with 1 addition and 20 deletions.
  1. +1 −20 lib/template/helpers/action.js
@@ -18,8 +18,7 @@
var helpersBase = require('../helpers')
, utils = require('utilities')
- , items = {}
- , formatPathString;
+ , items = {};
// Create a new helper from the given route object
exports.create = function (data) {
@@ -144,24 +143,6 @@ exports.create = function (data) {
items[name] = helper;
return helper;
-
- /*
- // Controller name is plural, initial-cap, camel-case (e.g. NealPearts)
- var controllerName = options.controller
- , names = utils.string.getInflections(controllerName)
- , idActions = ['show', 'edit']
- , name, action;
-
- // Default action function
- action = helpersBase.urlFor.action(options);
-
- // If action requires Id then change the default action
- if (utils.array.included(options.action, idActions)) {
- action = function (id) {
- options.id = id;
- return helpersBase.urlFor.action(options);
- };
- }*/
};
// Retrieve the list of current action helpers

0 comments on commit 030995c

Please sign in to comment.