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

@ -491,4 +491,14 @@ module ApplicationHelper
end
end
end
def general_change_description(version)
if version.event == 'create'
'created new'
elsif version.event == 'update'
"updated #{updated_attributes(version)} of"
else
'deleted'
end
end
end