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

allow_blank true doesn't work #1803

Open
charlie-goldenowl opened this issue Dec 30, 2022 · 0 comments
Open

allow_blank true doesn't work #1803

charlie-goldenowl opened this issue Dec 30, 2022 · 0 comments

Comments

@charlie-goldenowl
Copy link

Precheck

(attribute_validators + reflection_validators).any? { |v| v.kind == :presence && valid_validator?(v) }

how we can remove required class for this case bellow

validates :xxx, presence: true, allow_blank: true
  • Do not use the issues tracker for help or support, try Stack Overflow.
  • For bugs, do a quick search and make sure the bug has not yet been reported
  • If you found a security bug, do not report it through GitHub. Please send an e-mail to heartcombo@googlegroups.com instead.
  • Finally, be nice and have fun!

Environment

  • Ruby [3.0.5]
  • Rails [6]
  • Simple Form [latest]

Current behavior

Include code samples, errors, steps to reproduce the error and stacktraces if appropriate.

Will be even more helpful if you provide a sample application or a test case that reproduces the error.

Expected behavior

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

No branches or pull requests

1 participant