search for: basesampl

Displaying 1 result from an estimated 1 matches for "basesampl".

Did you mean: basesample
2014 Feb 19
0
Extending a module to models causes ArgumentError A copy of xx has been removed from module tree
...User. class Samples ... end module LoadSamples attr_accessor :samples def load_samples @samples ||= Samples.new ... end end The first page that loads, loads fine, but subsequent request gives: ------------------------------------- ArgumentError in UsersController#new A copy of BaseSample::LoadSamples has been removed from the module tree but is still active! ------------------------------------ and points to line @samples ||= Samples.new This works in production mode or when I set config.cache_classes to true. But it becomes difficult to work in dev mode. What can I do about it...