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

Added none query method to return zero records. #4805

Merged
merged 1 commit into from
Jan 31, 2012
Merged

Added none query method to return zero records. #4805

merged 1 commit into from
Jan 31, 2012

Conversation

xuanxu
Copy link
Contributor

@xuanxu xuanxu commented Jan 31, 2012

And added NullRelation class implementing the null object pattern for the Relation class.

rebased and squashed

And added NullRelation class implementing the null object pattern for the `Relation` class.
jonleighton added a commit that referenced this pull request Jan 31, 2012
Added `none` query method to return zero records.
@jonleighton jonleighton merged commit 75de1ce into rails:master Jan 31, 2012
whitby3001 added a commit to warmlyyours/rails that referenced this pull request Feb 12, 2013
Added `none` query method to return zero records.
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/querying.rb
@AlJohri
Copy link

AlJohri commented Aug 5, 2013

Is it possible to apply this PR to Rails 3.2 as well? If so, may I submit a PR to do so?

@dmathieu
Copy link
Contributor

dmathieu commented Aug 5, 2013

This is a new feature. Only bugfixes can go into 3.2 at this point.

whitby3001 added a commit to warmlyyours/rails that referenced this pull request Jul 8, 2014
Added `none` query method to return zero records.
Conflicts:
	activerecord/CHANGELOG.md
	activerecord/lib/active_record/querying.rb
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

6 participants