spec/dummy/tmp/cache/assets/development/sprockets/ed3843275b21843a93d01c48c1502c4c in hyper_admin-0.2.0 vs spec/dummy/tmp/cache/assets/development/sprockets/ed3843275b21843a93d01c48c1502c4c in hyper_admin-0.3.0

- old
+ new

@@ -1,10 +1,53 @@ {I" class:ETI"ProcessedAsset;FI"logical_path;TI"$hyper_admin/angularjs/states.js;FI" pathname;TI"f/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/states.js.coffee;FI"content_type;TI"application/javascript;TI" -mtime;Tl+#1þSI" length;TiºI" digest;TI"%09ff6558185b630fa14ccb298becbf3f;FI" source;TI"º(function() { +mtime;Tl+¼OTI" length;Ti¡I" digest;TI"%9056c4ae2b3c241490cb3f4ccabb0729;FI" source;TI"¡(function() { angular.module("hyperadmin").config(function($locationProvider, $stateProvider, $urlRouterProvider) { - return $locationProvider.html5Mode(true); + $locationProvider.html5Mode(true); + return $stateProvider.state("index", { + url: "/admin/:pluralName", + templateUrl: function(params) { + return "/admin/" + params.pluralName + ".html"; + }, + controller: "IndexCtrl as indexCtrl", + resolve: { + resourceClass: function($stateParams, Restangular) { + return Restangular.one("admin/resource_classes", $stateParams.pluralName).get(); + } + }, + data: { + resource: "resource" + } + }).state("index.new", { + url: "/new", + templateUrl: function(params) { + return "/admin/" + params.pluralName + "/new.html"; + }, + controller: "NewCtrl as newCtrl", + data: { + mode: "new" + } + }).state("index.show", { + url: "/:id", + templateUrl: function(params) { + return "/admin/" + params.pluralName + "/" + params.id + ".html"; + }, + controller: "ShowCtrl as showCtrl", + data: { + resource: "resource" + } + }).state("index.edit", { + url: "/:id/edit", + templateUrl: function(params) { + return "/admin/" + params.pluralName + "/" + params.id + "/edit.html"; + }, + controller: "EditCtrl as editCtrl", + data: { + resource: "resource", + mode: "edit" + } + }); }); }).call(this); -;TI"dependency_digest;TI"%62acb6a166f8cd03cc1657c7b2c90f07;FI"required_paths;T[I"f/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/states.js.coffee;FI"dependency_paths;T[{I" path;TI"f/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/states.js.coffee;FI" -mtime;TI"2014-08-27T21:27:31+02:00;TI" digest;TI"%872d70673736dd137e26bbbc4fdb10e9;FI" _version;TI"%3e3098c8a5e9a7f3b984ba95ac600637;F +;TI"dependency_digest;TI"%d45cacdc8c696191160a3428e432a77f;FI"required_paths;T[I"f/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/states.js.coffee;FI"dependency_paths;T[{I" path;TI"f/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/states.js.coffee;FI" +mtime;TI"2014-09-18T23:33:48+02:00;TI" digest;TI"%bd1906f4756e6228aa9899e7af186a9b;FI" _version;TI"%6584930913c75ff69ba506e1cfbae2c9;F \ No newline at end of file