discourse/app/controllers/directory_columns_controller.rb
2021-06-22 13:00:04 -05:00

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