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":
p ActiveRecord::Base.methods.include?('acts_as_searchable')
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
ActiveRecord::Base.
I am still digging around trying to find out why this is happening.
Anyone have any suggestions or ideas?
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
-~----------~----~----~----~------~----~------~--~---