hzamani / acts_as_relation

Multi table Inheritance for rails
http://hzamani.github.com/acts_as_relation/
MIT License
180 stars 58 forks source link

This is to fix the issue #13 some users are having on newer systems #14

Closed wharle90 closed 12 years ago

wharle90 commented 12 years ago

I don't know on which rails version AR changed its defaults, but all joins now default to having read_only set to true. By doing this, it makes it impossible to save subclasses with auto join enabled. I wrote two new tests to prove that subclasses are findable and saveable (the latter which failed before I made the necessary changes) and that changed the default_scope join to have read_only set to false.

Now this project should be able to be used by anyone on a newer version of AR.