1
0
Fork 0
mirror of https://github.com/kbparagua/paloma synced 2023-03-27 23:21:17 -04:00

Bug Fix: is not passed when calling filters.

This commit is contained in:
kbparagua 2013-03-10 10:40:33 +08:00
parent 6802a0e9cb
commit 51f66cf320
3 changed files with 7 additions and 3 deletions

View file

@ -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.

View file

@ -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"]

View file

@ -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.