On 14/11/06, Mark Fredrickson <[EMAIL PROTECTED]> wrote:
> I'd be happy to include this on the wiki. Can some explain how to add
> a helper function into the including module's namespace?
>
> eg. How do I get
>
> module Camping
> module REST
> module Helpers
> def form ...
> end
> end
> end
> end
>
> properly mixed in (so as to provide a form helper to override markaby)
> using 'include Camping::REST'
You'll have to use the included callback.
like :
module REST
def self.included(app)
app::Helpers.send :include, Helpers
end
end
--
Cheers,
zimbatm
http://zimbatm.oree.ch
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list