mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 04:26:29 +08:00
9 lines
312 B
Ruby
9 lines
312 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
|