Custom validation messages for a session model in Authlogic

What is the best way to override login / password verification messages in a session model in Authlogic? In the user model, Authlogic provides merge_ methods to override validation parameters, but Session has nothing of the kind.

Any suggestions?

+3
source share
1 answer

Authlogic has its own class I18n . Maybe this will help you? It uses the default Rails translation engine , so it is pretty easy to use.

+1
source

Source: https://habr.com/ru/post/1727106/


All Articles