Class: WorkActivity::Migration
- 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
-
#body_html ⇒ Object
Returns the message formatted to display file changes that were logged as an activity.
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_html ⇒ Object
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.) "<p>#{changes['message']}</p>" end |