{:uriI"file:///Users/etewiah/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/paloma-5.0.0/vendor/assets/javascripts/paloma/engine.js?type=application/javascript&pipeline=self&id=0fbf7d66d606f76bed9dda7f2dbfecefa25f7dd2fc2acb5c4649600971a69e19:ET:load_pathI"i/Users/etewiah/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/paloma-5.0.0/vendor/assets/javascripts;T: filenameI"z/Users/etewiah/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/paloma-5.0.0/vendor/assets/javascripts/paloma/engine.js;T: nameI"paloma/engine;T:logical_pathI"paloma/engine.self.js;T:content_typeI"application/javascript;T: sourceI"Paloma.Engine = function(controllerBuilder){ this.controllerBuilder = controllerBuilder; this._clearRequest(); }; Paloma.Engine.prototype = { setRequest: function(options){ this._request = { id: options.id, controller: options.resource, action: options.action, params: options.params, executed: false }; }, hasRequest: function(){ return this._request != null; }, lastRequest: function(){ return this._lastRequest = this._lastRequest || {executed: false}; }, start: function(){ if ( this._shouldStop() ) return; this._logRequest(); this._lastRequest = this._request; this._executeControllerAction(); this._clearRequest(); }, _executeControllerAction: function(){ var controller = this._buildController(); if (!controller) return; var callbackPerformer = new Paloma.BeforeCallbackPerformer(controller); callbackPerformer.perform( this._request.action ); var method = controller[ this._request.action ]; if (method) method.call(controller); this._lastRequest.executed = true; }, _buildController: function(){ return this.controllerBuilder.build({ controller: this._request.controller, action: this._request.action, params: this._request.params }); }, _shouldStop: function(){ if ( !this.hasRequest() ) return true; if ( this._request.id == this.lastRequest().id ) return true; return false; }, _logRequest: function(){ Paloma.log( 'Paloma: ' + this._request.controller + '#' + this._request.action + ' with params:' ); Paloma.log( this._request.params ); }, _clearRequest: function(){ this._request = null; } }; ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"file-digest:///Users/etewiah/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/paloma-5.0.0/vendor/assets/javascripts/paloma/engine.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%[ "@ wsG5"z߀e : lengthi:dependencies_digest"%ˏ)֊7 .8Wѥ;v8:idI"E0fbf7d66d606f76bed9dda7f2dbfecefa25f7dd2fc2acb5c4649600971a69e19;F: mtimel+=}