2008/10/19 Daniel N <[EMAIL PROTECTED]>: > It puts it into the controller rather than the helpers because it doesn't > make sense inside the other controller types, it only makes sense to have > the helper inside a web controller. Strategies may redirect, set headers > and return statuses. It does not make sense to have this available inside a > mailer or Part controller for example, and would actually fail since the > required methods, headers, status etc are not available in these. If it > were mixed into the GlobalHelpers mixin, all controllers would have access > to the helper, mailer and parts included which would break.
GlobalHelpers is included in Merb::Controller and not AbstractController. I can't see it being included in neither PartController nor MailController? > Thanx very much for taking the time to input :) Thanks for taking the time to reply! It's really interesting going through merb-core and merb-more. Most of it is very readable. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
