Sha256: 3e171d561c528d5eaf163fe77594246561f46b9b7466edaecd51dc44ba8f1407

Contents?: true

Size: 1.48 KB

Versions: 16

Compression:

Stored size: 1.48 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"5social_networking/resources/profiles-resource.js;FI"
pathname;TI"€/Users/usabilitymonitor/Desktop/Github/social_networking/app/assets/javascripts/social_networking/resources/profiles-resource.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+¢¿UI"length;TiÐI"digest;TI"%16a3219cc3b592c3e3b81e86bd716b1d;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"required_assets_digest;TI"%5d7a2e59a3d32966094c87e6178a7966;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/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.13.1 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.13.0 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.13.0 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.11.8 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.11.8 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.11.5 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.11.5 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.11.4 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.11.4 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.11.3 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.11.3 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.11.0 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a
social_networking-0.11.0 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.10.0 spec/dummy/tmp/cache/assets/development/sprockets/70ff1654d4b7ed74abf19a80e5fe4430
social_networking-0.10.0 spec/dummy/tmp/cache/assets/development/sprockets/eef1ceb46960a235655ca8d7909b4f2a