noosfero | hotspot: refactor profile_image_link hotspot (f5c2a127)

Bráulio Bhavamitra gitlab at mg.gitlab.com
Sat May 20 11:13:41 BRT 2017


Bráulio Bhavamitra commented on a discussion on lib/noosfero/plugin/manager.rb:

> -      impl = plugin.send(event, *args)
> -      break if impl != default
> -    end
> -    impl
> -  end
> -
>    alias :dispatch_scopes :dispatch_without_flatten
>  
>    def dispatch_first(event, *args)
> -    result = nil
> +    default = Noosfero::Plugin.new.send(event, *args)
> +    result = default
>      each do |plugin|
>        result = plugin.send(event, *args)
> -      break if result.present?
> +      break if result != default

fixed at https://github.com/noosfero/noosfero/commit/48bfeb64b32d4dffdc6d2e45f972fc44d6db83ee

---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/commit/f5c2a127d2e2de8bd51b558ed9a48098365584ad#note_30202551
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170520/33cb689f/attachment.html>


More information about the Noosfero-dev mailing list