Show changes to event commercials in event changelog

This commit is contained in:
Nishanth Vijayan 2016-08-13 23:45:46 +05:30
parent da1c8fc691
commit e2659ae907
5 changed files with 24 additions and 10 deletions

View file

@ -86,6 +86,7 @@ module Admin
@comment_count = @event.comment_threads.count
@ratings = @event.votes.includes(:user)
@difficulty_levels = @program.difficulty_levels
@versions = @event.versions | PaperTrail::Version.where(item_type: 'Commercial', item_id: @event.commercials.pluck(:id))
end
def edit