Skip to content
Browse files

Fix form type helper methods

  • Loading branch information...
1 parent 23934b8 commit 66e2fe5a1b5a6dd48be3efa0b6a337bc57e66a20 @mhuggins committed Jul 4, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/railway-bootstrap/helpers.js
View
3 lib/railway-bootstrap/helpers.js
@@ -33,7 +33,8 @@ exports.bootstrapFormFor = exports.bootstrap_form_for = function (resource, para
*/
['vertical', 'horizontal', 'inline'].forEach(function (format) {
exports[format + 'FormFor'] = exports[format + '_form_for'] = function (resource, params, block) {
+ arguments.callee.buf = arguments.callee.caller.buf;
params = railway.utils.safe_merge({ format: format }, params);
- exports.bootstrapFormFor(resource, params, block);
+ exports.bootstrapFormFor.call(this, resource, params, block);
};
});

0 comments on commit 66e2fe5

Please sign in to comment.
Something went wrong with that request. Please try again.