spec/dummy/tmp/cache/assets/development/sprockets/d8bd2a2fe67a4fcb7001f1fd53912993 in hyper_admin-0.3.0 vs spec/dummy/tmp/cache/assets/development/sprockets/d8bd2a2fe67a4fcb7001f1fd53912993 in hyper_admin-0.4.0
- old
+ new
@@ -1,20 +1,20 @@
{I"
class:ETI"BundledAsset; FI"logical_path; TI";hyper_admin/angularjs/directives/form/resource_form.js; FI"
pathname; TI"}/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/directives/form/resource_form.js.coffee; FI"content_type; TI"application/javascript; TI"
-mtime; Tl+M¥TI"length; Ti1I"digest; TI"%300dab0d4354077c876dbb721fd43771; FI"source; TI"1(function() {
+mtime; Tl+Ú)TI"length; Ti;I"digest; TI"%7679686d4e162f5f8ff141e1aca697bb; FI"source; TI";(function() {
angular.module("hyperadmin").directive("resourceForm", function() {
return {
- template: "<div class=\"row\">\n <div class=\"col-xs-12\" ng-controller=\"FormCtrl as formCtrl\">\n <form-errors errors=\"formCtrl.errors\"></form-errors> \n\n <form class=\"form-horizontal\" name=\"form\" ng-submit=\"formCtrl.submit()\" novalidate>\n <form-input-group ng-repeat=\"attribute in resourceClass.attributes\"\n resource=\"formCtrl.resource\"\n attr=\"attribute.key\"\n errors=\"formCtrl.errors[attribute.key]\"\n human=\"attribute.human\"\n type=\"attribute.type\">\n </form-input-group>\n\n <form-actions form=\"form\" cancel-state=\"resourceClass.plural\"\n </form>\n </div>\n</div>",
+ template: "<div class=\"row\">\n <div class=\"col-xs-12\" ng-controller=\"FormCtrl as formCtrl\">\n <form-errors errors=\"formCtrl.errors\"></form-errors> \n\n <form class=\"form-horizontal\" name=\"form\" ng-submit=\"formCtrl.submit()\" novalidate>\n <form-input-group ng-repeat=\"attribute in resourceClass.form_attributes\"\n resource=\"formCtrl.resource\"\n attr=\"attribute.key\"\n errors=\"formCtrl.errors[attribute.key]\"\n human=\"attribute.human\"\n type=\"attribute.type\">\n </form-input-group>\n\n <form-actions form=\"form\" cancel-state=\"resourceClass.plural\"\n </form>\n </div>\n</div>",
restrict: "E",
scope: {
resourceClass: "=resourceClass"
},
controller: function($scope) {
return ["id", "created_at", "updated_at"].forEach(function(attr) {
- return delete $scope.resourceClass.attributes[attr];
+ return delete $scope.resourceClass.form_attributes[attr];
});
}
};
});
}).call(this);
-; TI"required_assets_digest; TI"%8e6b9972370427d1c82f231a9d088ddc; FI"
_version; TI"%6584930913c75ff69ba506e1cfbae2c9; F
+; TI"required_assets_digest; TI"%fcd56d36461a7215201333f95dc98407; FI"
_version; TI"%6584930913c75ff69ba506e1cfbae2c9; F
\ No newline at end of file