Display who added commercial for event

Activate versioning for tests

The tests were failing because of the lack of versioning.By default, versioning is off for tests.
As a result, here (app/views/proposal/_form.html.haml L43) commercial,versions.last returns nil as there are no versions.
This commit is contained in:
Nishanth Vijayan 2016-07-29 20:09:16 +05:30
parent 8335aa8b43
commit 48828f8930
5 changed files with 14 additions and 11 deletions

View file

@ -17,7 +17,7 @@
= version.id
%td.col-md-9
%p
= change_creator_link(version.whodunnit) unless version.item_type == 'User'
= link_to_user(version.whodunnit) unless version.item_type == 'User'
- case version.item_type
- when 'Event'