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

Leading and trailing spaces effect match names in database #1

Open
dmorrill10 opened this issue Jun 21, 2012 · 1 comment
Open

Leading and trailing spaces effect match names in database #1

dmorrill10 opened this issue Jun 21, 2012 · 1 comment

Comments

@dmorrill10
Copy link
Owner

This is a problem because the ACPC dealer doesn't treat the spaces the same way. It strips match names (as normally expected), so those coming into the database should do the same.

@dmorrill10
Copy link
Owner Author

Fixed it so that match names will be stripped before being placed in the database and sent to the dealer, but I haven't figured out how to do this before client side validations are done, so to the user, these matches look valid. Mongoid allows before_validation callbacks through ActiveSupport, but I haven't figured out how to do this properly.

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

No branches or pull requests

1 participant