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

'Case' the database model messes with ruby's case/when syntax #1049

Open
madoleary opened this issue Jan 29, 2021 · 0 comments
Open

'Case' the database model messes with ruby's case/when syntax #1049

madoleary opened this issue Jan 29, 2021 · 0 comments
Labels

Comments

@madoleary
Copy link
Contributor

Right now it's not possible to write 'case' in reference to the model without tripping over ruby's case/when syntax. If you write 'case' to declare a variable in reference to the case model, ruby expects the 'when' follow-up, and will throw an error. This will likely pose problems for object fabrication during unit tests, where, for example, a 'case' object ought to be nested inside of a point using the same name that it has in the database.

@JustinBack JustinBack added the bug label Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants