json.extract! action, :id, :batch_id, :actionable_id, :actionable_type, :created_at, :updated_at json.url action_url(action, format: :json)