Skip to content

Commit

Permalink
Set proper type for jsonb fields to correctly render in admin
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-hank committed Sep 13, 2022
1 parent 7a1dceb commit 17ff141
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). It uses [CalVer](https://calver.org/) as of May 2019.

## [22.09b](https://github.com/berkmancenter/lumendatabase/releases/tag/2022.09b) - 2022-09-13
### Fixed
* Set the proper type for `jsonb` fields to correctly render in the `admin`.

## [22.09a](https://github.com/berkmancenter/lumendatabase/releases/tag/2022.09a) - 2022-09-05
### Fixed
* Fixed duplicates of `special domains` when showing the full notice version.
Expand Down
12 changes: 12 additions & 0 deletions config/initializers/rails_admin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,18 @@ def custom_work_label
end
end

config.model 'ContentFilter' do
configure :actions, :enum do
multiple true
end
end

config.model 'SpecialDomain' do
configure :why_special, :enum do
multiple true
end
end

# Hide unused models from the admin
# == START ============================================================
config.model 'ReindexRun' do
Expand Down

0 comments on commit 17ff141

Please sign in to comment.