{I" class:ETI"ProcessedAsset;FI"logical_path;TI"2social_networking/resources/goals-resource.js;FI" pathname;TI"s/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/goals-resource.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+æ#\TI" length;TiœI" digest;TI"%73170cbf6b2d9f1fc7f23736f402327c;FI" source;TI"œ;(function() { 'use strict'; function Goals($resource) { var GoalResource = $resource('/social_networking/goals/:id', { id: '@id' }); function Goal() {} // Persist a Goal to the server. Goal.create = function(attributes) { var goal = new GoalResource({ description: attributes.description, isCompleted: attributes.isCompleted, dueOn: attributes.dueOn }); return goal.$save(); }; // Update a Goal on the server. Goal.update = function(attributes) { var goal = new GoalResource({ id: attributes.id, description: attributes.description, isCompleted: attributes.isCompleted, isDeleted: attributes.isDeleted, dueOn: attributes.dueOn }); return goal.$save(); }; return Goal; } angular.module('socialNetworking.services') .service('Goals', ['$resource', Goals]); })(); ;TI"dependency_digest;TI"%b23adb2d7b8018b8bb8ec4af63e29661;FI"required_paths;T[I"s/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/goals-resource.js;FI"dependency_paths;T[{I" path;TI"s/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/goals-resource.js;F@I"2014-11-06T19:44:06-06:00;T@I"%73170cbf6b2d9f1fc7f23736f402327c;FI" _version;TI"%883b724e06f474a3db2deee10c127ab9;F