Displaying 1 result from an estimated 1 matches for "nibblerjson".
2010 Aug 17
6
Overly aggressive constant unloading of Rails 3.0
...ach request, regardless of
whether it comes from an autoload path in the application or from external
code such as a gem.
Example file (tested on a fresh edge app):
# kittens.rb
require ''nibbler/json'' # "nibbler" is a gem specified in Gemfile
module Kittens
NibblerJSON
end
This file can be either in "app/models/" or in "lib/". Regardless of whether
it was autoloaded or required, *Rails will unload both Kittens and
NibblerJSON modules* regardless of the fact the latter comes from an
external source (the "nibbler" gem). Additionally...