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

Raises ArgumentError when try to define a scope without a callable #17374

Merged
merged 1 commit into from
Oct 27, 2014

Conversation

maurogeorge
Copy link
Contributor

This changes the actual exception

NoMethodError: undefined method `call' for #<ActiveRecord::Relation []>

to a ArgumentError when try to define a scope without a callable.

This changes the actual exception `NoMethodError: undefined method `call'
for #<ActiveRecord::Relation []>` to a `ArgumentError` when try to define
a scope without a callable.
@senny senny merged commit b570b6b into rails:master Oct 27, 2014
senny added a commit that referenced this pull request Oct 27, 2014
Raises ArgumentError when try to define a scope without a callable
@senny
Copy link
Member

senny commented Oct 27, 2014

@maurogeorge thank you 💛

I made some minor modifications and added a CHANGELOG entry.

@maurogeorge
Copy link
Contributor Author

@senny thanks for the merge 💚

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.

None yet

2 participants