{:uriI"file:///Users/etewiah/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/bundler/gems/paloma-40a84f5dfa5d/vendor/assets/javascripts/paloma/engine.js?type=application/javascript&pipeline=self&id=1b7f9d288828d591074219b6627774e654b3d7bc9aa4997da7730a33594ceabc:ET:load_pathI"|/Users/etewiah/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/bundler/gems/paloma-40a84f5dfa5d/vendor/assets/javascripts;T: filenameI"/Users/etewiah/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/bundler/gems/paloma-40a84f5dfa5d/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/.asdf/installs/ruby/2.6.1/lib/ruby/gems/2.6.0/bundler/gems/paloma-40a84f5dfa5d/vendor/assets/javascripts/paloma/engine.js;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%[ "@ wsG5"z߀e : lengthi:dependencies_digest"%n}i>^ad2j:idI"E1b7f9d288828d591074219b6627774e654b3d7bc9aa4997da7730a33594ceabc;F: mtimel+; \