Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
NameError: uninitialized constant Mobility::ActiveRecord::Base #69
When Mobility is loaded for ActiveRecord, it includes
class MyModel < ActiveRecord::Base def my_method ActiveRecord::Base.uncached do # some code end end end
It will get an exception raised:
It will get an exception because
The fix on the user's side would be to qualify top level lookup with
Another would be to rename the
Do you have other suggestions on how to approach this issue?
Wow, nice catch. Never even considered this problem.
There's one easy way to fix it, just extend
I think for this, maybe a note in the readme mentioning that both