Class: EditablePageBodyParserJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- EditablePageBodyParserJob
- Defined in:
- app/jobs/editable_page_body_parser_job.rb
Overview
Parse editable page body
Instance Method Summary collapse
Instance Method Details
#perform(id) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'app/jobs/editable_page_body_parser_job.rb', line 8 def perform(id) entity = EditablePage.find_by(id: id) return if entity.nil? entity.parsed_body = OembedReceiver.convert(entity.body) entity.save end |