Camping::Apps returns!

Magnus Holm
Thu, 28 Aug 2008 20:06:20 -0000

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 <zimbatm at oree.ch> 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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>



--
Magnus Holm
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/camping-list/attachments/20080828/7c1fbc12/attachment-0001.html>