I'm trying to diagnose some breakage that occurred in the update from
2.1.2 to 2.2.0.
The short version: an "acts_as_searchable" method added to
ActiveRecord::Base doesn't work anymore (raises NoMethodError).
The long version:
The method is added by a file inside the "lib" directory.
The file is "required" from "config/environment.rb".
If I print a debug messages from "config/environment.rb" I can see
that the method was indeed added to ActiveRecord::Base; ie, the
following prints "true":
If I print a debug message from inside a model file, the same
statement prints "false".
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
I am still digging around trying to find out why this is happening.
Anyone have any suggestions or ideas?