Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove default form_class #1852

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

remove default form_class #1852

wants to merge 1 commit into from

Conversation

elfassy
Copy link

@elfassy elfassy commented Nov 11, 2024

Why

Overwriting the form_class is deprecated (has been for 10 years). Therefore, it doesn't make sense that form_class is setting a class that most will want to change. Also having simple_form on every form leaks implementation details

#1217 (comment)

What

change the default to not set a class on all forms. To get back the legacy behaviour set

config.default_form_class = :simple_form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant