I have a model called Well in my app stored in well.rb under app/models. This has worked fine for quite some time. All of a sudden I noticed that the whole Well section (model/controller/view) was behaving strangely. I have tracked it down to the model not being recognized as an ActiveRecord::Base object. I have reduced the model to its minimum, here it is:
app/models/well.rb
class Well < ActiveRecord::Base
end
When I load the Rails console and run
Well.superclass
I get "Object" in response. While every other model correctly returns
ActiveRecord::Base type in response to superclass method call, e.g., User.superclass
Is there something obvious that I may be missing?
Thanks for your time in advance.
Bharat