Skip to content

Commit

Permalink
[fix] admin: adapt semantic_errors form helper to Rails 7
Browse files Browse the repository at this point in the history
  • Loading branch information
markets committed Apr 3, 2024
1 parent f50ecb4 commit e270659
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/admin/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
end

form do |f|
f.semantic_errors *f.object.errors.keys
f.semantic_errors *f.object.errors.attribute_names
f.inputs do
f.input :type, as: :radio, collection: %w[Offer Inquiry]
f.input :title
Expand Down
2 changes: 1 addition & 1 deletion app/admin/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
filter :created_at

form do |f|
f.semantic_errors *f.object.errors.keys
f.semantic_errors *f.object.errors.attribute_names
f.inputs do
f.input :username
f.input :email
Expand Down

0 comments on commit e270659

Please sign in to comment.