noosfero | WIP: Rails 5.1.6 Upgrade (!1438)

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


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

>  
>    settings_items :limit, :type => :integer, :default => 10
>  
> -  def limit_with_body_change=(value)
> +  def limit_with_body_change
>      #UPGRADE Leandro: I add this line to save the serialize attribute
>      self.body_will_change!
> -    self.limit_without_body_change= value
> +    self.limit_without_body_change
>    end
>  
> -  alias_method_chain :limit=, :body_change
> +  alias_method :limit_without_body_change, :limit
> +  alias_method :limit, :limit_with_body_change

The alias you created are not the same. Note that the previous method was a setter. Was this on pupose?

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


More information about the Noosfero-dev mailing list