This project is archived and is in readonly mode.
ActiveRecord::Base#exists? raises exception when using :include in default_scope
-
yipdw
URL scheme goof:
https://gist.github.com/624421/417c372a474a16566989261c8e0f9944fe32...
should be (for consistency)
http://gist.github.com/624421/417c372a474a16566989261c8e0f9944fe3268ae
-
Ryan Bigg
- State changed from new to incomplete
- Importance changed from to Low
Please attach a patch with a failing test to this ticket by following the "Contributing to Rails" guide.
-
Ryan Bigg
Automatic cleanup of spam.
-
Jonathan Julian
This also raises when
exists?is called on an association with an:include. Note that it only raises when it should return true. ActiveRecord 3.0.2A workaround, if you can use an id to check for existence:
model.collection_singular_ids.include?(associated_id) -
rails
- State changed from incomplete to open
This issue has been automatically marked as stale because it has not been commented on for at least three months.
The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.
Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.
-
rails
- State changed from open to stale