Sha256: cfdbfa02f99ab8b69784d083d7557b4d094c9744dfa3f382c213e5387a6a30b1
Contents?: true
Size: 774 Bytes
Versions: 48
Compression:
Stored size: 774 Bytes
Contents
var handlers, model, persistable, record; require('./queryable'); handlers = { store_after_saved: function() { var storage; storage = model[this.resource.toString()].storage; if (this._id) { return storage.store(this._id, this); } } }; persistable = { record: { after_initialize: function() { var storage; if (this._id) { storage = model[this.resource.toString()].storage; return storage.store(this._id, this); } else { return this.after('saved', handlers.store_after_saved); } } } }; model = window.model; record = window.record; model.persistable = true; model.mix(function(modelable) { return modelable.record.after_initialize.push(persistable.record.after_initialize); });
Version data entries
48 entries across 48 versions & 1 rubygems