On 19 Nov 2008, at 10:47, Wincent Colaiuta wrote: > > So somewhere between the evaluation of "config/environment.rb" and the > evaluation of the model file which uses the "acts_as_searchable" > method, the method is actually getting removed from > ActiveRecord::Base. > > I am still digging around trying to find out why this is happening. > Anyone have any suggestions or ideas?
I suspect that the difference is that in production mode on 2.2 models are preloaded at the end of initialisation process, which is before the stuff at the end of environment.rb gets run, ie your models are loaded before you've required the file adding the stuff. Fred > > > Cheers > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

