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

Add an ability to customize not only error message, but error details as well #22

Open
ec opened this issue Feb 7, 2019 · 0 comments
Open

Comments

@ec
Copy link

ec commented Feb 7, 2019

Due to Rails 5 innovation - adding error.details will be cool to have an opportunity to customize it.
Now it is ->

     {:error=>:"password.password_strength",
      :use_dictionary=>true,
      :min_entropy=>14,
      :value=>""}

For some reasons (unifying errors format in the app to be compatible for translations) i need to have smth like

{:error=>:"low_strength",}
@ec ec changed the title Add an ability to customize not only error message, but error key as well Add an ability to customize not only error message, but error details as well Feb 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant