Files
nairobi/app/models
Bertocq e59ed81528 Return 404 accesing community without communitable
Why:

Somehow we're seeing communities without proposals at production. We
must find why and fix it, but first we need to throw a 404 at the user
instead of a 500 internal server error

How:

First catching the scenario of non-existent communitable at the
controller and raising a 404 error. Secondly preventing the author_id
access over a possibly nil object, this is a smell but it can't be
easily fixed right now... we need to correctly implement a relation
between Community and communitable and avoid the multiple occurences of
`community.from_proposal?` in the codebase that makes it impossible to
extend to a fourth communitable model.
2018-01-23 00:22:53 +01:00
..
2017-07-18 13:07:30 +02:00
2015-07-15 13:32:13 +02:00
2017-11-17 13:14:03 -04:00
2017-07-25 13:01:03 +02:00
2016-01-26 18:10:47 +01:00
2017-10-17 22:00:00 +02:00
2016-11-23 19:19:19 +01:00
2016-05-10 18:31:50 +02:00
2017-12-20 12:43:49 +01:00
2017-04-06 16:25:07 +02:00
2017-11-13 02:22:00 +01:00
2016-05-30 13:55:12 +02:00
2015-08-08 12:56:41 +02:00
2017-12-15 19:21:02 +01:00