[Nitro] Simple Og Q

George Moschovitis george.moschovitis at gmail.com
Mon Sep 26 05:43:32 EDT 2005


in lib/og/entity.rb, at line 51, change the code like this:

      def delete(cascade = true)
        self.class.ogmanager.store.delete(self, self.class, cascade)
      alias_method :delete!, :delete

then call


This patch will be available in the next version. Thanks for reporting.


On 9/26/05, Emmanuel Piperakis <epiperak at softlab.ece.ntua.gr> wrote:
> > Hi all, I have a simple question:
> >
> > Group belongs_to Area
> >
> > when I delete the area object Og deletes the Group that belongs to it. How
> > can I stop this?
> Forgot to thank you in advance ;-)
> Emmanouil Piperakis (epiperak at cs.ntua.gr)
> {To explore is Human, to Create is Devine,
>   To teach is Primal, to Rule is Sin}
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general


More information about the Nitro-general mailing list