filt 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/filt.rb +2 -1
- metadata +3 -3
data/lib/filt.rb
CHANGED
@@ -17,12 +17,13 @@ module Filters
|
|
17
17
|
return unless send(hook)
|
18
18
|
end
|
19
19
|
end unless @@before_hooks[method] || @@after_hooks[method]
|
20
|
-
send("__#{method}",*args,&block)
|
20
|
+
returnable = send("__#{method}",*args,&block)
|
21
21
|
@@after_hooks.keys.each do |hook|
|
22
22
|
unless (@@after_hooks[hook][:except]||[]).include?(method) || (@@after_hooks[hook][:only] && !@@after_hooks[hook][:only].include?(method))
|
23
23
|
return unless send(hook)
|
24
24
|
end
|
25
25
|
end unless @@before_hooks[method] || @@after_hooks[method]
|
26
|
+
return returnable
|
26
27
|
end
|
27
28
|
end
|
28
29
|
|
metadata
CHANGED