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

- old
+ new

@@ -1,77 +1,10 @@ {I" class:ETI"ProcessedAsset;FI"logical_path;TI"/hyper_admin/angularjs/services/resource.js;FI" pathname;TI"q/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/services/resource.js.coffee;FI"content_type;TI"application/javascript;TI" -mtime;Tl+ÙîTI" length;TiØ -I" digest;TI"%1260487cb1113ef63f22cb4d182e4127;FI" source;TI"Ø -(function() { +mtime;Tl+³JTI" length;TiíI" digest;TI"%6e063afa2826a403156e81a98446b3c4;FI" source;TI"í(function() { angular.module("hyperadmin").factory("Resource", function($location, $rootScope, $state, $urlRouter, Restangular) { - var menuStates, registerStates; - Restangular.all("admin/resource_classes").getList().then((function(_this) { - return function(resources) { - _this.resources = Restangular.stripRestangular(resources); - return registerStates(); - }; - })(this)); - registerStates = (function(_this) { - return function() { - _this.resources.forEach(function(resource) { - return stateProvider.state("" + resource.plural, { - url: "/admin/" + resource.plural, - templateUrl: function() { - return "/admin/" + resource.plural + ".html"; - }, - controller: "IndexCtrl as indexCtrl", - data: { - resource: resource - } - }).state("" + resource.plural + ".new", { - url: "/new", - templateUrl: function() { - return "/admin/" + resource.plural + "/new.html"; - }, - controller: "NewCtrl as newCtrl", - data: { - resource: resource, - mode: "new" - } - }).state("" + resource.plural + ".show", { - url: "/:id", - templateUrl: function(params) { - return "/admin/" + resource.plural + "/" + params.id + ".html"; - }, - controller: "ShowCtrl as showCtrl", - data: { - resource: resource - } - }).state("" + resource.plural + ".edit", { - url: "/:id/edit", - templateUrl: function(params) { - return "/admin/" + resource.plural + "/" + params.id + "/edit.html"; - }, - controller: "EditCtrl as editCtrl", - data: { - resource: resource, - mode: "edit" - } - }); - }); - $state.get().forEach(function(state) { - var match, url; - if (!state.templateUrl) { - return; - } - url = state.templateUrl("nothing").replace(/undefined/, "(\\d+)").replace("\.html", ""); - match = $location.path().match("^" + url + "$"); - if (match) { - return $state.go(state, { - id: match[1] - }); - } - }); - return $rootScope.$emit("resources:states:registered"); - }; - })(this); + var menuStates; menuStates = (function(_this) { return function() { return _this.resources.map(function(resource) { return { list_state: "" + resource.plural, @@ -84,7 +17,7 @@ menuStates: menuStates }; }); }).call(this); -;TI"dependency_digest;TI"%5cd8b46b6159b1df51ecf0ae43f8e199;FI"required_paths;T[I"q/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/services/resource.js.coffee;FI"dependency_paths;T[{I" path;TI"q/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/services/resource.js.coffee;FI" -mtime;TI"2014-09-11T20:50:01+02:00;TI" digest;TI"%af252f8d0734b531aa5d3acfbdca6800;FI" _version;TI"%3e3098c8a5e9a7f3b984ba95ac600637;F +;TI"dependency_digest;TI"%747550bd82887afc4cf67e23a8a15b93;FI"required_paths;T[I"q/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/services/resource.js.coffee;FI"dependency_paths;T[{I" path;TI"q/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/services/resource.js.coffee;FI" +mtime;TI"2014-09-18T23:12:19+02:00;TI" digest;TI"%89c746c3852552e5c915abbcd5f886d8;FI" _version;TI"%6584930913c75ff69ba506e1cfbae2c9;F \ No newline at end of file