Sha256: 66a20501d57e5c8fbfda8542e61f01018a95b80fa32e40b9f09f5d3992b19b49

Contents?: true

Size: 1.65 KB

Versions: 8

Compression:

Stored size: 1.65 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"<social_networking/controllers/participant-controller.js;FI"
pathname;TI"}/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/controllers/participant-controller.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+�#\TI"length;Ti}I"digest;TI"%8637aaf2c5c256931bcf6221c5604ca8;FI"source;TI"};(function() {
    "use strict";

    // Provide interaction with a participant's profile.
    function ParticipantCtrl(participantId, Participants, Nudges) {
        var self = this;

        this._nudges = Nudges;
        Participants.getOne(participantId)
            .then(function(participant) {
                self.id = participant.id;
                self.username = participant.username;
                self.latestAction = participant.latestAction;
            })
            .catch(function(error) {
                window.console.log(error);
            });
        this.responses = [{ question: 'foo?', text: 'bar' }];
    }

    // Send a nudge from one participant to another.
    ParticipantCtrl.prototype.nudge = function() {
        this._nudges.create({ recipient: this });
    };

    // Initiate profile editor interface.
    ParticipantCtrl.prototype.edit = function() {
        window.console.log("edit");
    };

    // Create a module and register the controllers.
    angular.module('socialNetworking.controllers')
        .controller('ParticipantCtrl', ['participantId', 'Participants', 'Nudges', ParticipantCtrl]);
})();
;TI"required_assets_digest;TI"%e89ae4e325d6ac34bd7a07a10735c76f;FI"
_version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/8d32b3801595c0eb0ae85cb6be525e62
social_networking-0.11.7 spec/dummy/tmp/cache/assets/development/sprockets/b9842aedd5f876d94df34a98d4d6bc8d
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/8d32b3801595c0eb0ae85cb6be525e62
social_networking-0.11.6 spec/dummy/tmp/cache/assets/development/sprockets/b9842aedd5f876d94df34a98d4d6bc8d
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/8d32b3801595c0eb0ae85cb6be525e62
social_networking-0.11.2 spec/dummy/tmp/cache/assets/development/sprockets/b9842aedd5f876d94df34a98d4d6bc8d
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/8d32b3801595c0eb0ae85cb6be525e62
social_networking-0.11.1 spec/dummy/tmp/cache/assets/development/sprockets/b9842aedd5f876d94df34a98d4d6bc8d