diff --git a/lib/rails_admin/config/fields/types/active_record_enum.rb b/lib/rails_admin/config/fields/types/active_record_enum.rb index 04ec571944..b464f8b35b 100644 --- a/lib/rails_admin/config/fields/types/active_record_enum.rb +++ b/lib/rails_admin/config/fields/types/active_record_enum.rb @@ -34,6 +34,14 @@ def parse_value(value) def parse_input(params) params[name] = parse_value(params[name]) if params[name] end + + def form_default_value + enum[super] + end + + def form_value + enum[super] + end end end end