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

- old
+ new

@@ -1,14 +1,19 @@ {I" class:ETI"BundledAsset;FI"logical_path;TI"5hyper_admin/angularjs/controllers/navbar_ctrl.js;FI" pathname;TI"w/home/sindre/Code/hyper/hyper_admin/app/assets/javascripts/hyper_admin/angularjs/controllers/navbar_ctrl.js.coffee;FI"content_type;TI"application/javascript;TI" -mtime;Tl+Î9þSI" length;Ti=I" digest;TI"%a201e2b5294eb6cfe5e5f74c39da0917;FI" source;TI"=(function() { - angular.module("hyperadmin").controller("NavbarCtrl", function($rootScope, Resource) { - $rootScope.$on("resources:states:registered", (function(_this) { - return function() { - return _this.resources = Resource.menuStates(); +mtime;Tl+qQTI" length;TiÕI" digest;TI"%be5e43dfd8dbc0dc216198f84e7f8b03;FI" source;TI"Õ(function() { + angular.module("hyperadmin").controller("NavbarCtrl", function(Restangular) { + Restangular.all("admin/resource_classes").getList().then((function(_this) { + return function(resources) { + return _this.resources = resources.map(function(resource) { + return { + list_state: "" + resource.plural, + label: resource.menu_label + }; + }); }; })(this)); return this; }); }).call(this); -;TI"required_assets_digest;TI"%89ba9ea3738f8fec7c015eb2198a86e3;FI" _version;TI"%3e3098c8a5e9a7f3b984ba95ac600637;F +;TI"required_assets_digest;TI"%d788bd23c46358ba92f33618a050df3d;FI" _version;TI"%6584930913c75ff69ba506e1cfbae2c9;F \ No newline at end of file