From 51f66cf320fa9458477ecaa1b98afdee2817cf6b Mon Sep 17 00:00:00 2001 From: kbparagua Date: Sun, 10 Mar 2013 10:40:33 +0800 Subject: [PATCH] Bug Fix: is not passed when calling filters. --- Changelog.md | 4 ++++ paloma.gemspec | 2 +- vendor/assets/javascripts/paloma_core.js | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Changelog.md b/Changelog.md index 94859bd..61734d6 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,6 +1,10 @@ Changelog = +Version 2.0.1 +- +* Bug Fix: `params` is not passed when calling filters. + Version 2.0.0 - * Change `js_callback` to `js` only. diff --git a/paloma.gemspec b/paloma.gemspec index 9ae345d..c623b43 100644 --- a/paloma.gemspec +++ b/paloma.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'paloma' - s.version = '2.0.0' + s.version = '2.0.1' s.summary = "Provides an easy way to execute page-specific javascript for Rails." s.description = "Page-specific javascript for Rails done right" s.authors = ["Karl Paragua", "Bia Esmero"] diff --git a/vendor/assets/javascripts/paloma_core.js b/vendor/assets/javascripts/paloma_core.js index 72cda5d..81aeb79 100644 --- a/vendor/assets/javascripts/paloma_core.js +++ b/vendor/assets/javascripts/paloma_core.js @@ -231,9 +231,9 @@ Paloma.execute = function(controller, action, params){ action); // Start filter and callback executions - performFilters(beforeFilters); + performFilters(beforeFilters, params); if (callbackFound){ callback(params); } - performFilters(afterFilters); + performFilters(afterFilters, params); // variableContainer is used to share variable between filters and callbacks. // It will be cleared after it is used.