You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
betelgeuse
changed the title
enum fields should be generated as Field::Select instead of Field::String
Enum fields should be generated as Field::Select instead of Field::String
Apr 29, 2020
* Fixesthoughtbot/administrate#1629
* Define enum collection option as a proc
* make proc regexp better
Co-authored-by: Tadeusz Niemiec <tadeusz@applover.pl>
Run generator for a ActiveRecord model with an enum column.
Dashboard with Field::String
The generated field should be like this
With Field::String submitting to the update action with invalid value results in a Server Error of ArgumentError in Admin::ModelController#update
The text was updated successfully, but these errors were encountered: