I am often running into random errors with Mongoid::Token, it seems that some of my constants are tried to be resolved from Mongoid::Token::Collisions scope.
Often prefixing my controller class names with :: (::ProfilesController) do help but not always
Actually the problem may come from here : I have model classes that have the same name as a module I use to prefix my controller
class Admin
token ...
end
class Admin::ProfilesController < ApplicationController
end
# => uninitialized constant Mongoid::Token::Collisions::ProfilesController
I am often running into random errors with Mongoid::Token, it seems that some of my constants are tried to be resolved from Mongoid::Token::Collisions scope.
Like
uninitialized constant Mongoid::Token::Collisions::ProfilesController
uninitialized constant Mongoid::Token::Collisions::RegistrationsController
Often prefixing my controller class names with
::
(::ProfilesController
) do help but not alwaysActually the problem may come from here : I have model classes that have the same name as a module I use to prefix my controller
My Stack Trace