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
Symbols support is incomplete #1127
Comments
Sounds like we can treat symbols like strings. Would love to see a patch! |
I'm not familiar with the formtastic internals, thus I don't have a slightest idea what can break if the Symbol is added to the list above. |
I gave this a try, so now arrays of symbols won't be mapped anymore but will be returned in their original form just like an array of strings would be. If that's not what you were aiming for here, I'm open for suggestions |
In combination with the gem @romanbsd was mentioning? |
@Morred yeah, the fix looks good, but I'd love to know for sure this fixes the problem it attempts to solve before merging. |
@justinfrench Absolutely, that makes sense. I'd love for @romanbsd to try it out because he could definitely tell whether it solves the problem in his current app or not. If he doesn't have time, I'll set up a small test app and check it myself. |
Ah damn, completely forgot about this one! If @romanbsd isn't here anymore, I guess I'll have to be the one to try it out |
While using with the role_model gem, the following inconsistency has surfaced:
While the selected_values (make_selected_values) is an array of Symbols, the Collections#collection converts the User.valid_roles to array of strings because
As a workaround, I provide the collection in the form:
The text was updated successfully, but these errors were encountered: