2021-06-07 13:34:01 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class DirectoryColumnsController < ApplicationController
|
|
|
|
def index
|
2021-06-22 14:00:04 -04:00
|
|
|
directory_columns = DirectoryColumn.includes(:user_field).where(enabled: true).order(:position)
|
|
|
|
render_json_dump(
|
|
|
|
directory_columns: serialize_data(directory_columns, DirectoryColumnSerializer),
|
|
|
|
)
|
2021-06-07 13:34:01 -04:00
|
|
|
end
|
|
|
|
end
|