DEV: Apply syntax_tree formatting to app/*

This commit is contained in:
David Taylor
2023-01-09 12:20:10 +00:00
parent a641ce4b62
commit 5a003715d3
696 changed files with 18447 additions and 15481 deletions

View File

@ -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