Thanks for the reply Fred.
> This should work. You do (if my memory is correct) need to use
> absolute paths though - check what's already in
> ActiveSupport::Dependencies.load_once_paths
It doesn't :( I checked the content of
ActiveSupport::Dependencies.load_once_paths and the lib/foo is there
and it's an absolute path. It is first element of the list, all the
others are plugins and gems paths. Not sure if I'm doing it correctly,
but I put this into the Rails::Initializer.run { ... } block in the
config/environment.rb:
config.load_only_paths << "#{Rails.root}/lib/foo"
just after I define all gem dependencies.
Am I doing it right?
adam.
>
> Fred
>
>
>
> > - adding unloadable to the Foo::Base module
> > - moving the include line (ActiveRecord::Base.send(:include, ...) into
> > config/initializers/foo.rb
>
> > But nothing helps :(
>
> > Any help will be appreciated. Thanks.
>
> > adam.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" 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/rubyonrails-talk?hl=en.