app/helpers/application_helper.rb in tawork-0.0.24 vs app/helpers/application_helper.rb in tawork-0.0.25

- old
+ new

@@ -15,6 +15,12 @@ creator: current_user, parent_id: params[:parent_id] ) end end + + def link_to_trackable activity, path + link = send(:"#{path}_path", (activity.trackable || "deleted-#{activity.trackable_id}")) + + link_to((activity.trackable.try(:title) || "[Deleted Page]"), link) + end end