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

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