Sha256: 9534ca363319373b4894e01cdac0adc73ac541c08d56dc7fd664374dfe7f6f8d

Contents?: true

Size: 1.81 KB

Versions: 16

Compression:

Stored size: 1.81 KB

Contents

{I"
class:ETI"ProcessedAsset;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"%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"}/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/goals-resource.js;FI"dependency_paths;T[{I"	path;TI"}/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/goals-resource.js;F@I"2015-08-03T12:17:18-05:00;T@I"%73170cbf6b2d9f1fc7f23736f402327c;FI"
_version;TI"%883b724e06f474a3db2deee10c127ab9;F

Version data entries

16 entries across 8 versions & 1 rubygems

Version Path
social_networking-0.13.1 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.13.1 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.13.0 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.13.0 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.11.8 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.11.8 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.11.5 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.11.5 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.11.4 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.11.4 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.11.3 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.11.3 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.11.0 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc
social_networking-0.11.0 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.10.0 spec/dummy/tmp/cache/assets/test/sprockets/65659c07970685b84e8d0323530c629c
social_networking-0.10.0 spec/dummy/tmp/cache/assets/test/sprockets/90ef9bac9f4c24268b5faf1757fda6fc