noosfero | WIP: Rails 5.1.6 Upgrade (!1438)
Matheus Richard
gitlab at mg.gitlab.com
Thu Nov 1 11:45:34 BRST 2018
Matheus Richard commented on a 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
I've updated to this
```ruby
--
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_113788985
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/20181101/0679b5ce/attachment-0001.html>
More information about the Noosfero-dev
mailing list