hzamani / acts_as_relation

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

Find or build methods are not supported #37

Closed baldursson closed 10 years ago

baldursson commented 11 years ago

This line completes without errors, but create an empty model, i.e. the attributes in the where query are not included: SubModel.where("attribute = ?", 'value').first_or_create!

And this line throws an exception: SubModel.find_or_create_by(attribute: value)

hzamani commented 10 years ago

fixed in active_record-acts-as