discourse/app/controllers/directory_columns_controller.rb
2023-01-09 14:14:59 +00:00

11 lines
325 B
Ruby

# frozen_string_literal: true
class DirectoryColumnsController < ApplicationController
def index
directory_columns = DirectoryColumn.includes(:user_field).where(enabled: true).order(:position)
render_json_dump(
directory_columns: serialize_data(directory_columns, DirectoryColumnSerializer),
)
end
end