noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

Gabriel Silva gitlab at mg.gitlab.com
Wed Oct 31 13:07:36 BRST 2018


Gabriel Silva started a new discussion on app/models/concerns/set_profile_region_from_city_state.rb:

>    module ClassMethods
>      def set_profile_region_from_city_state
>        before_save :region_from_city_and_state
> -
>        include InstanceMethods
> -      alias_method_chain :city=, :region
> -      alias_method_chain :state=, :region
>      end
>    end
>  
>    module InstanceMethods

I understand these fixes, but you have to prepend this module, right? Did you change the `include` to `prepend`? I couldn't tind the fix in the diff.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_113533065
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/20181031/2eb8e5f5/attachment-0001.html>


More information about the Noosfero-dev mailing list