tenstates, I patched this in my branch here: http://github.com/loopforever/dm-is-self_referential
Give it a shot and see if it works for you. I'm just waiting for snusnu to pull the changes into his branch. - Matt Savona On May 18, 3:00 pm, tenstates <[email protected]> wrote: > If I have a model stated as Admin::Assignments and add the following: > > is :self_referential, :through => 'AdminTask', > :children => :child_tasks, # admin_child_tasks > :parents => :parent_tasks, # admin_parent_tasks > :source => :parent_tasks, # parent_tasks > :target => :child_task # child_tasks > > both create_relationship_writer and create_relationship_reader in dm- > core-0.10.3/lib/dm-core/model/relationship.rb fail because of the "/" > in the relationship.name. > > I get the following error from > > : syntax error, unexpected '/', expecting '\n' or ';' > def admin/assignment_child_tasks(query = nil) > > Can anyone suggest a patch for this? > > -- > You received this message because you are subscribed to the Google Groups > "DataMapper" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/datamapper?hl=en. -- You received this message because you are subscribed to the Google Groups "DataMapper" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/datamapper?hl=en.
