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

@ -40,3 +40,6 @@
- if can? :destroy, commercial
= link_to 'Delete', conference_program_proposal_commercial_path(@conference.short_title, @event.id, commercial.id),
:method => :delete, :data => { :confirm => 'Are you sure?' }, class: 'btn btn-danger'
.text-right
= "added by "
= link_to_user(commercial.versions.last.whodunnit)