papipo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2006-Aug-29 13:11 UTC
acts_as_nested_set and STI
Hi! I have a model that will act as nested set. Some other models, will inherit from that first one (hence the STI), but i wish that the models that extend it cannot have children. How can I do this? Maybe adding something like: def add_child false end will do the work? Thanks, Rodrigo. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---