Author: Braulio Bhavamitra <braulio@prout.io>
plugin/manager: call default as fallback
lib/noosfero/plugin/manager.rb | 2 +-
diff --git a/lib/noosfero/plugin/manager.rb b/lib/noosfero/plugin/manager.rb index 0c56bf620da8811a9db017d55335fca337749efd..b0da43a2cf59a9d665d603ee55926395a2d6cc82 100644 --- a/lib/noosfero/plugin/manager.rb +++ b/lib/noosfero/plugin/manager.rb @@ -39,7 +39,7 @@ method = plugin.method event next unless method.owner == plugin.class return method.call(*args) end - nil + return Noosfero::Plugin.new.send event, *args end def fetch_first_plugin(event, *args)