Class: WorkActivity::Migration

Inherits:
Renderer
  • Object
show all
Defined in:
app/models/work_activity.rb

Constant Summary

Constants inherited from Renderer

Renderer::DATE_FORMAT, Renderer::DATE_TIME_FORMAT, Renderer::SORTABLE_DATE_TIME_FORMAT, Renderer::UNKNOWN_USER

Instance Method Summary collapse

Methods inherited from Renderer

#created_by_user_html, #created_sortable_html, #created_updated_html, #initialize, #title_html, #to_html

Constructor Details

This class inherits a constructor from WorkActivity::Renderer

Instance Method Details

#body_htmlObject

Returns the message formatted to display file changes that were logged as an activity



232
233
234
235
# File 'app/models/work_activity.rb', line 232

def body_html
  changes = JSON.parse(@work_activity.message)
  "<p>#{changes['message']}</p>"
end