Files
nairobi/app/models
Bertocq 26cf91c61a Create valuation comments creation ability
Why:

Only admins or valuators (for those investments they've assigned) can
create internal valuation comments on them.

How:

* Creating a new `comment_valuation` ability for admins and valuators in
the same manner the `valuate` ability works.

* Adding a validation at Comment model for those with `valuation` flag
active that checks if the author can make a valuation comment on the
commentable, as well as the respective active record error messages.
This will prevent comments from being created at a controller level as
well.

* Improving comment factory trait `valuation` to have an associated
investment, author that is a valuator and setting the valuator on the
valuators list of the investment
2018-01-31 02:03:03 +01:00
..
2017-07-18 13:07:30 +02:00
2017-11-17 13:14:03 -04:00
2017-07-25 13:01:03 +02:00
2017-10-17 22:00:00 +02:00
2017-12-20 12:43:49 +01:00
2017-11-13 02:22:00 +01:00
2017-12-15 19:21:02 +01:00