discourse/app/serializers/sidebar_url_serializer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
252 B
Ruby
Raw Permalink Normal View History

# frozen_string_literal: true
class SidebarUrlSerializer < ApplicationSerializer
attributes :id, :name, :value, :icon, :external, :full_reload, :segment
def external
object.external?
end
def full_reload
object.full_reload?
end
end