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

Adding a clearer error message when trying to use an invalid includes. #172

Merged
merged 1 commit into from
Feb 15, 2014
Merged

Adding a clearer error message when trying to use an invalid includes. #172

merged 1 commit into from
Feb 15, 2014

Conversation

JohnPostlethwait
Copy link
Contributor

Before the error was this:

TypeError: Cannot read property 'model' of undefined at utils.mixin._createSelectStatement

Now it is this:

Error: Could not find the associated model "BadAssociation" on the "GoodModel" model. at utils.mixin._createSelectStatement

Test added as well.

Before the error was this:

```
TypeError: Cannot read property 'model' of undefined at
utils.mixin._createSelectStatement
```

Now it is this:

```
Error: Could not find the associated model "BadAssociation" on the
"GoodModel" model. at utils.mixin._createSelectStatement
```

Test added as well.
@JohnPostlethwait
Copy link
Contributor Author

As you can probably tell by all my pull requests; I keep doing things incorrectly! 👅

mde added a commit that referenced this pull request Feb 15, 2014
Adding a clearer error message when trying to use an invalid includes.
@mde mde merged commit 758feb0 into geddy:master Feb 15, 2014
@mde
Copy link
Contributor

mde commented Feb 15, 2014

This is great, thanks!

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

Successfully merging this pull request may close these issues.

2 participants