jisaacks / recurse-delete

Rails gem to recursively delete self and all dependent associations without an N+1
25 stars 14 forks source link

fix for associations with class_name parameter, issue #7 #9

Closed jaynetics closed 9 years ago

jaynetics commented 9 years ago

This fix allows the gem to work on associations that specify a class_name which does not match the association name. E.g.:

class Pizza has_many :toppings, class_name: :Ingredient, dependent: :delete_all end

jisaacks commented 9 years ago

Cool. Thanks. :shipit: