{I" class:ETI"BundledAsset;FI"logical_path;TI";social_networking/resources/profile-answer-resource.js;FI" pathname;TI"|/Users/ems408/workspace/social_networking/app/assets/javascripts/social_networking/resources/profile-answer-resource.js;FI"content_type;TI"application/javascript;TI" mtime;Tl+æ#\TI" length;TiÍI" digest;TI"%5fd6ab9de39cd280dfa05f4dbbcd088b;FI" source;TI"Í;(function() { 'use strict'; function ProfileAnswers($resource) { var ProfileAnswerResource = $resource('/social_networking/profile_answers/:id', { id: '@id' }); function ProfileAnswer() {} ProfileAnswer.getAll = function() { return ProfileAnswerResource.query().$promise; }; ProfileAnswer.getOne = function(profile_id, profile_question_id) { return ProfileAnswerResource.get({ profile_id: profile_id, profile_question_id: profile_question_id }).$promise; }; // Persist a Goal to the server. ProfileAnswer.create = function(attributes) { var answer = new ProfileAnswerResource({ profile_id: attributes.profile_id, profile_question_id: attributes.profile_question_id, answer_text: attributes.answer_text }); return answer.$save(); }; // Update a Goal on the server. ProfileAnswer.update = function(attributes) { var answer = new ProfileAnswerResource({ id: attributes.id, profile_id: attributes.profile_id, profile_question_id: attributes.profile_question_id, answer_text: attributes.answer_text }); return answer.$save(); }; return ProfileAnswer; } angular.module('socialNetworking.services') .service('ProfileAnswers', ['$resource', ProfileAnswers]); })(); ;TI"required_assets_digest;TI"%4e5016aefe5defeeabbc1f48fd555f19;FI" _version;TI"%b910479f035fc02c55a3e167aaa8a0b8;F