Sha256: 6f8f51497504d670063f8e3555b6f36ac08845f079163a7a6c50452a0e8d89bc
Contents?: true
Size: 1.42 KB
Versions: 16
Compression:
Stored size: 1.42 KB
Contents
{I" class:ETI"BundledAsset; FI"logical_path; TI"2social_networking/resources/goals-resource.js; FI" pathname; TI"}/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/goals-resource.js; FI"content_type; TI"application/javascript; TI" mtime; Tl+¢¿UI"length; TiœI"digest; TI"%bc101c1848356f110d6ed730be3b1c2f; 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"required_assets_digest; TI"%e0bb3b0df1224ba6454799b1d4948c22; FI" _version; TI"%069e88c06b889877799890854d7f4c40; F
Version data entries
16 entries across 8 versions & 1 rubygems