discourse/app
Nick Borromeo b51bebb200 Extract queries to keep logic in the Categories Model
This creates two methods in the Category model. This moves the model
logic to the model and just calls the Category class methods in
ListController.

This also adds tests for the two methods created in the Category
model. The motivation for this refactor is the code climate score of the
this class and readability of the code.

 Please enter the commit message for your changes. Lines starting
2014-02-08 14:10:48 -08:00
..
assets BUFGIX: read more should take you to the first post 2014-02-07 15:07:13 -08:00
controllers Extract queries to keep logic in the Categories Model 2014-02-08 14:10:48 -08:00
helpers Merge pull request #1863 from ecuk/analytics 2014-01-27 12:33:17 -08:00
jobs BUGFIX: Use email sender 2014-02-09 07:29:16 +11:00
mailers FEATURE: proper mailing list mode 2014-02-07 11:07:52 +11:00
models Extract queries to keep logic in the Categories Model 2014-02-08 14:10:48 -08:00
serializers FIX: more protection from nil in count_with_subcategories 2014-02-07 11:38:22 -05:00
services FEATURE: proper mailing list mode 2014-02-07 11:07:52 +11:00
views FIX: Invalid ruby code for universal google analytics 2014-01-30 15:45:24 -05:00