On Mar 1, 2:55 pm, Adam Cigánek <[email protected]> wrote: > > config.load_only_paths << "#{Rails.root}/lib/foo" > > just after I define all gem dependencies.
Ah, don't forget to do require_dependency rather than require (or else you're half bypassing the rails dependency system and odd things can happen). Worth also sticking some breakpoints in AS::Dependencies to check that your file is being handled properly. Fred > > 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.

