If I have 2 different classes with name User
, say one in FooModule
and other as a model in app/models/user.rb
, how do I make sure I am using the correct one?
EDIT:
FooModule::User
would definitely give me the correct one.
What I had meant to ask was:
If ApplicationController
includes FooModule
, would User
or ::User
still give me app/models/user
?