In this case you can do:
dependency "merb-mailer" do
require "merb-mailer"
Merb::Mailer.config = {
:host => 'localhost',
:port => '25',
:domain => "john.local"
}end
This will register the dependency, and cause the block to get executed when
the dependency is loaded (later on in the boot process).
-- Yehuda
On Fri, Oct 10, 2008 at 1:46 AM, John Bresnik <[EMAIL PROTECTED]> wrote:
> Got this in my init.rb
>
> dependency "merb-mailer" # Integrates mail support via Merb Mailer
>
> Merb::Mailer.config = {
> :host => 'localhost',
> :port => '25',
> :domain => "john.local"
> }
>
> But got this:
>
> uninitialized constant Merb::Mailer (NameError)
>
> when I try to run anything..
>
> Incidentally I can make it go away by adding
>
> require 'merb-mailer'
>
> but didn't seem right..
>
> anybody else experiencing this? running on abt a week old edge (0.9.8) btw
>
> Thanks
>
>
> >
>
--
Yehuda Katz
Developer | Engine Yard
(ph) 718.877.1325
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---