Sha256: 71057511c751324b2d46937140b46c718b4ad3bec9e02aec783a2e8c9fc2e664

Contents?: true

Size: 1.85 KB

Versions: 4

Compression:

Stored size: 1.85 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"5social_networking/resources/profiles-resource.js;FI"
pathname;TI"v/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/profiles-resource.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+æ#\TI"length;TiÐI"digest;TI"%58696e4762a4b9bae1445bc1c7688e36;FI"source;TI"Ð;(function() {
    'use strict';

    function Profiles($resource) {
        var ProfileResource = $resource('/social_networking/profiles/:id', {
            id: '@id' }, {
            'update': {method: 'PUT'}
        });
        var ProfilesResource = $resource('/social_networking/profiles');

        function Profile() {}

        Profile.getAll = function() {
            return ProfilesResource.query().$promise;
        };

        Profile.getOne = function(id) {
            return ProfileResource.get({ id: id }).$promise;
        };

        // Update a Goal on the server.
        Profile.update = function(attributes) {
            var profile = new ProfileResource();
            return profile.$update({
                id: attributes.profile.id,
                icon_name: attributes.iconSrc
            });
        };

        return Profile;
    }

    angular.module('socialNetworking.services')
        .service('Profiles', ['$resource', Profiles]);
})();
;TI"dependency_digest;TI"%490d737b22cc361e8162c2b3cfbcb5b9;FI"required_paths;T[I"v/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/profiles-resource.js;FI"dependency_paths;T[{I"	path;TI"v/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/profiles-resource.js;FI"
mtime;TI"2014-11-06T19:44:06-06:00;TI"digest;TI"%58696e4762a4b9bae1445bc1c7688e36;FI"
_version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/2f73cb8ddef0271168cf35453023cff1
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/2f73cb8ddef0271168cf35453023cff1
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/2f73cb8ddef0271168cf35453023cff1
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/2f73cb8ddef0271168cf35453023cff1