Error including module inside ActionController::Base

Hi im having a strange error, i made a module inside lib to make a
personalized access control.

module DicaX
module AccessControl
def can?

end
end

module Exception
class AccessDenied
end
end
end

When i start the rails server and go to some page i get this error

Expected app_path /lib/dicax/access_control.rb to define AccessControl

after a refresh the error changes to

Expected app_path /lib/dicax/exceptions.rb to define Exceptions

and after a refresh i dont get more errors.

Inside ApplicationController i did a include DicaX::AccessControl, i
tried to use ActionController::Base.send(:include, DicaX::AccessControl)
but if i do this i cant see the methods inside controllers.

Anyone can help me?

Thanks!