mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 23:21:11 +08:00
DEV: Apply syntax_tree formatting to app/*
This commit is contained in:
@ -1,10 +1,22 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PermalinkSerializer < ApplicationSerializer
|
||||
attributes :id, :url, :topic_id, :topic_title, :topic_url,
|
||||
:post_id, :post_url, :post_number, :post_topic_title,
|
||||
:category_id, :category_name, :category_url, :external_url,
|
||||
:tag_id, :tag_name, :tag_url
|
||||
attributes :id,
|
||||
:url,
|
||||
:topic_id,
|
||||
:topic_title,
|
||||
:topic_url,
|
||||
:post_id,
|
||||
:post_url,
|
||||
:post_number,
|
||||
:post_topic_title,
|
||||
:category_id,
|
||||
:category_name,
|
||||
:category_url,
|
||||
:external_url,
|
||||
:tag_id,
|
||||
:tag_name,
|
||||
:tag_url
|
||||
|
||||
def topic_title
|
||||
object&.topic&.title
|
||||
|
Reference in New Issue
Block a user