ministryofjustice/tribunals — pull request #90 by dotemacs (2013-11-08 15:24:47+00:00)
Title:  Added parties & categories to FTT views

**NOTE**: I'll sqash this before rebasing, but wanted to keep the commits separate because:

1. This was really the goal of this PR

Added parties & categories to FTT views,

2. But this had to be done for it to work:

Redesigned display_categories helper …

Since all the helpers are available in all the views and I've reused the
display_categories helper from EatDecisionsHelper in FttDecisionsHelper,
when the examples were run, the helper from EatDecisionsHelper were
being picked up first so the examples were failing.

That's why I created the generic_helper.rb and added the helper method
there, so that both models can use it.

The only drawback of the method is that it will fail for non CamelCase
models such as Decision, whereas EatDecision is fine.