4 ms·
Love authlogic; it's such a well-constructed library. Just the other day I borrowed the method they use for getting access to controller functionality like cook
by drags 16y ago
Love authlogic; it's such a well-constructed library. Just the other day I borrowed the method they use for getting access to controller functionality like cookies and params. It's the sort of thing I've always done by passing the controller object to the method that needs it, but the authlogic way is just so much cleaner: http://github.com/binarylogic/authlogic/blob/master/lib/authlogic/controller_adapters/rails_adapter.rb http://github.com/binarylogic/authlogic/blob/master/lib/auth...