We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a owner model:
class Person < ActiveRecord::Base has_many_polymorphs :things, :from => [ :books, :cds, :dvds ], :through => :person_things end
a relationship model:
class PersonThing < ActiveRecord::Base belongs_to :person belongs_to :thing, :polymorphic => true end
and several owned models:
class Book < ActiveRecord::Base end ...
If I create a relationship:
person = Person.create!(:name => 'Barney') book = Book.create!('Dinosaurs for Dummies') person.things << book
then include? fails even when select doesn't:
include?
select
person.things.include? book # => false person.things.select { |t| t == book }.any? # => true
I'm guessing include? is redefined on this enumeration, but it's not redefined correctly.
The text was updated successfully, but these errors were encountered:
best bet is to make a failing test and fix it yourself; this project is in patch-accepting-mode only :-/
Sorry, something went wrong.
No branches or pull requests
I have a owner model:
a relationship model:
and several owned models:
If I create a relationship:
then
include?
fails even whenselect
doesn't:I'm guessing
include?
is redefined on this enumeration, but it's not redefined correctly.The text was updated successfully, but these errors were encountered: