diff --git a/spec/test_app/spec/filters_spec.rb b/spec/test_app/spec/filters_spec.rb index 91dd493..d926a3c 100644 --- a/spec/test_app/spec/filters_spec.rb +++ b/spec/test_app/spec/filters_spec.rb @@ -151,7 +151,7 @@ describe 'Paloma.FilterScope', :type => :feature, :js => true do include_examples 'filters', false # non-namespaced filters include_examples 'filters', true # namespaced filters - #include_examples 'skip filters', 'before' + include_examples 'skip filters', 'before' #include_examples 'skip filters', 'after' #include_examples 'skip filters', 'around' end diff --git a/vendor/assets/javascripts/paloma_core.js b/vendor/assets/javascripts/paloma_core.js index d12d149..c7b8959 100644 --- a/vendor/assets/javascripts/paloma_core.js +++ b/vendor/assets/javascripts/paloma_core.js @@ -61,7 +61,7 @@ Paloma._getOrderedFilters = function(before_or_after, namespace, controller, act if (controllerFilters !== undefined){ controllerFilters = controllerFilters.concat(Paloma._filters['around'][controller] || []); - + // Select applicable filters for the passed action for (var i = 0, n = controllerFilters.length; i < n; i++){ var filter = controllerFilters[i]; @@ -87,7 +87,7 @@ Paloma.FilterScope = function(name){ this.skipFilters = []; this.skipFilterType = undefined; this.skipType = 'all'; - + Paloma._scopes[name] = this; };