Sha256: 5dfcd528cfc272e32b20bf68956ea45c4079d8cd169a139e51dc6502d097dcb2
Contents?: true
Size: 1.79 KB
Versions: 4
Compression:
Stored size: 1.79 KB
Contents
{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"%65c1cb6c952c0989b0c08ab27314ca1c;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"%681af630cbff42b3964ebc406243c6f3;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;FI" mtime;TI"2014-11-06T19:44:06-06:00;TI"digest;TI"%65c1cb6c952c0989b0c08ab27314ca1c;FI" _version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F
Version data entries
4 entries across 4 versions & 1 rubygems