Well, it's being used in mab.rb and ar.rb:

Old way:
Object.constants.map{|c|Object.const_get(c)}.each do |c|
  c::Models.module_eval $AR_EXTRAS if c.respond_to?(:goes)
end

New way:
Camping::Apps.each do |c|
  c::Models.module_eval $AR_EXTRAS
end

Which may break if you got another class/module with #goes...

On Thu, Aug 28, 2008 at 9:54 PM, zimbatm <[EMAIL PROTECTED]> wrote:

> Hi Magnus,
>
> If I remember well, I am the one who introduced AND removed
> Camping::Apps. I'm not sure anymore but I think it wasn't really used
> and that solutions never really satisfied me. Do you have any use for
> it ?
>
> Cheers,
>   zimbatm
> _______________________________________________
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>



-- 
Magnus Holm
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to