Sha256: 66825eb1ff21ce4ac9186073648b83524646657829be7b0916bb1033cff69814
Contents?: true
Size: 343 Bytes
Versions: 1
Compression:
Stored size: 343 Bytes
Contents
pageflow.Quota = Backbone.Model.extend({ modelName: 'quota', paramRoot: 'quota', url: function() { return '/editor/quotas/' + this.id; }, isExceeded: function() { return this.get('state') === 'exceeded'; } }); pageflow.Quota.byName = function(name, options) { return new pageflow.Quota({ id: name }, options); };
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pageflow-0.1.0 | app/assets/javascripts/pageflow/editor/models/quota.js |