Alessio Caiazza is sharing code with you
Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.
Don't show this againCommit 356177366517 Raw commit »
- commit
- 356177366517
- parent
- 3ed2e6884cb2
- branch
- default
fix the access to collection_singular_ids and allows to use collection.includes?(obj) with SigleTableInheritance w/out :select => :type
Accessing collection_singular_ids with Rails 2.3.4 no longer causes the loaded? NoMethodError.
If you use a collection with SigleTableInheritance and with :select option, but you didn't
select the type attribute, the collection.include?(obj) method will not find any inherited object.
| File | Lines added | Lines removed |
|---|---|---|
| has_and_belongs_to_many_with_deferred_save/lib/has_and_belongs_to_many_with_deferred_save.rb | 30 | – |
Comments
Log in to comment »