Sha256: c3dd30c169b9eab2473941626f74c13ace63047588b0a3f8676bae7bc5a341f5
Contents?: true
Size: 970 Bytes
Versions: 23
Compression:
Stored size: 970 Bytes
Contents
/** * API Bound Models for AngularJS * @version v1.1.3 - 2014-09-25 * @link https://github.com/angular-platanus/restmod * @author Ignacio Baixas <ignacio@platan.us> * @license MIT License, http://www.opensource.org/licenses/MIT */ (function(angular, undefined) { 'use strict'; angular.module('restmod').factory('AgileProxyApi', ['restmod', 'inflector', function(restmod, inflector) { return restmod.mixin('DefaultPacker', { // include default packer extension $config: { style: 'AMS', primaryKey: 'id', jsonMeta: 'meta', jsonLinks: 'links' }, $extend: { // special snakecase to camelcase renaming Model: { decodeName: inflector.camelize, encodeName: function(_v) { return inflector.parameterize(_v, '_'); } } } }); }]);})(angular);
Version data entries
23 entries across 23 versions & 2 rubygems