o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1336655371.787186: @value"¯ {I" class:EFI"ProcessedAsset;FI"logical_path;F" ems/helpers/route_helper.jsI" pathname;F"p/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/helpers/route_helper.coffeeI"content_type;FI"application/javascript;FI" mtime;FI"2012-05-09T16:37:34+01:00;FI" length;FiNI" digest;F"%4da3a52a79e9d4f02843b3dd709618a0I" source;FI"N(function() { Batman.mixin(Batman.Filters, { routeTo: function(record, opts) { var arg, args, finalRoute, keyPath, namedArgs, obj, prop, route, routeName, specialArg, specialArgs, _i, _len; if (typeof opts === 'string') { routeName = opts; args = {}; } else { routeName = opts.name; args = opts.args; } if (routeName) { route = Batman.currentApp.get("routes." + routeName); } else { Batman.developer.error("Could not gather routeName from opts '" + opts + "'"); } if (route) { if (route.collectionRoute) { finalRoute = route.collectionRoute; namedArgs = finalRoute.namedArguments; } else { finalRoute = route.get('routeMap.memberRoute'); namedArgs = finalRoute.namedArguments; } if (namedArgs) { specialArgs = {}; for (obj in args) { prop = args[obj]; if (typeof prop === 'string' && prop.indexOf('=') === 0) { specialArgs[obj] = prop.replace('=', ''); } } for (specialArg in specialArgs) { keyPath = specialArgs[specialArg]; try { args[specialArg] = this.get(keyPath); } catch (error) { Batman.developer.error("Could not retrieve value '" + specialArg + "' from object, " + error); } } for (_i = 0, _len = namedArgs.length; _i < _len; _i++) { arg = namedArgs[_i]; if (record.get(arg) !== (null || void 0) && args[arg] === void 0) { args[arg] = record.get(arg); } } } } else { Batman.developer.error("Could not find route '" + routeName + "'"); } return finalRoute.pathFromParams(args); } }); }).call(this); ;TI"dependency_digest;F"%a5d78bd57a2f7c508cb08283784789b9I"required_paths;F["p/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/helpers/route_helper.coffeeI"dependency_paths;F[{I" path;F"p/private/var/www/html/development/projects/rails/ems/app/assets/javascripts/ems/helpers/route_helper.coffeeI" mtime;FI"2012-05-09T16:37:34+01:00;FI" digest;F"%13548ddf22c2de64104f248a9660cf39I" _version;F"%9f3b95dd7ea3030dc35985c0a8020862