[Nitro] Simple Og Q
Emmanuel Piperakis
epiperak at softlab.ece.ntua.gr
Mon Sep 26 06:31:27 EDT 2005
Thank you G.
for your patch to work in the form that I was using it also the function
of module ClassMethods in the same file must be update. Here is the code:
def delete(obj_or_pk,cascade = true)
ogmanager.store.delete(obj_or_pk, self,cascade)
end
alias_method :delete!, :delete
Thanx again for the immediate reply
> Hello,
>
> 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)
> end
> alias_method :delete!, :delete
>
> then call
>
> myobj.delete(false)
>
> This patch will be available in the next version. Thanks for reporting.
>
> -g.
>
>
>
> 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
>>
>
>
> --
> http://www.gmosx.com
> http://www.navel.gr
> http://www.nitrohq.com
>
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>
Emmanouil Piperakis (epiperak at cs.ntua.gr)
{To explore is Human, to Create is Devine,
To teach is Primal, to Rule is Sin}
More information about the Nitro-general
mailing list