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:
parent
6802a0e9cb
commit
51f66cf320
3 changed files with 7 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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"]
|
||||
|
|
4
vendor/assets/javascripts/paloma_core.js
vendored
4
vendor/assets/javascripts/paloma_core.js
vendored
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue