vendredi 8 mai 2015

acts_as_tree default foreign key column

Rubydoc says,

By default, ActsAsTree expects a foreign key column called parent_id

My question is, how can we change the default foreign key column to some custom column?

Aucun commentaire:

Enregistrer un commentaire