David Celis e751b8d58f Default values for posts/topics fields on Category
When creating categories (or, at least, subcategories), certain integer
values are set to a default of NULL: topics_week, topics_month,
topics_year, posts_week, posts_month, and posts_year. This causes
consistent exceptions when trying to visit `/categories`, with the
offending line being in
`CategoryDetailedSerializer#count_with_subcategories`. This attempts to
coerce nil into Fixnum.

A fix could be to convert to 0 in the code, but these attributes should
really never be NULL. If there are no posts or topics, they should be 0
to maintain data integrity.

Signed-off-by: David Celis <me@davidcel.is>
2014-02-06 12:04:03 -08:00
..
2013-10-22 17:34:39 -04:00
2013-02-26 07:31:35 +03:00
2014-02-04 12:57:52 +11:00
2013-11-05 19:07:29 +01:00
2013-09-06 18:03:30 +10:00
2013-10-16 10:28:42 -04:00
2013-12-24 00:50:36 +01:00
2013-02-26 07:31:35 +03:00
2013-11-05 19:07:29 +01:00
2014-02-03 14:50:19 +11:00