noosfero | WIP: Rails 5.1.6 Upgrade (!1438)
Álax Alves
gitlab at mg.gitlab.com
Thu Nov 8 11:53:32 BRST 2018
Álax Alves commented on a discussion on app/models/abuse_report.rb:
>
> attr_accessible :content, :reason
>
> - belongs_to :reporter, :class_name => 'Person'
> - belongs_to :abuse_complaint
> - has_many :reported_images, :dependent => :destroy
> + belongs_to :reporter, class_name: 'Person', optional: true
Rails versions < 5, made all the `belongs_to` associations optional but since [this](https://github.com/rails/rails/pull/18937) we couldnt create an `abuse_report` withou creating an associated reporter, for example.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1438#note_115600463
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/20181108/1fe8ab92/attachment.html>
More information about the Noosfero-dev
mailing list