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

ActiveRecord no longer has a "scoped" method #66

Merged
merged 1 commit into from
Aug 21, 2019

Conversation

jrochkind
Copy link
Collaborator

Using the newer "none" method is a great way to do what the comment said was being done, return an AR Relation that's a null set.

I'm not totally sure why this code is doing that or what's going on in the ActiveRecord::Wrapper class around 'sets' in general.

I was unable to figure out how to make a test case that exersizes this code.

Closes #49

Using the newer "none" method is a great way to do what the comment said was being done, return an AR Relation that's a null set.

I'm not totally sure why this code is doing that or what's going on in the ActiveRecord::Wrapper class around 'sets' in general.

I was unable to figure out how to make a test case that exersizes this code.

Closes #49
@jrochkind jrochkind merged commit 190d2c1 into master Aug 21, 2019
@jrochkind jrochkind deleted the avoid_active_record_scoped_method branch August 21, 2019 20:32
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

1 participant