> MagicModuleIncluder.make_magic :MyModule, :SomeOtherModule, ...
>
> def MyApp.create
>   MyModule.create
>   SomeOtherModule.create
>   ... MyApp creation code ...
> end

I'm not sure I quite understand this... what does MagicModuleIncluder  
do that simply including modules doesn't? (As in: http:// 
code.whytheluckystiff.net/camping/wiki/BeforeAndAfterOverrides) What  
sort of stuff do you have in mind for these components?

But to add some more mixin stuff to the stew, here's a one you can  
use to send JSON in the body of a request and have it parsed for you  
into the @input:

   http://mdaines.com/svn/messages/trunk/lib/json_input.rb

Also an authentication mixin (without proper credit to its original  
author but this repository is an unreleased project and I'll put it  
back in soon) which you can use inside controllers:

   http://mdaines.com/svn/messages/trunk/lib/authentication.rb

You might also have a look at the fake_method one which does the same  
thing as the code posted earlier in this thread.


-- Michael Daines
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to