applicake/doorkeeper — pull request #76 by mattgreen (2012-03-26 18:59:00+00:00)
Title: Allow token expiration to be disabled

This patch allows access tokens to be configured to never expire by passing nil as the expiration time, along with a spec to test that it is actually set to be nil. I'm looking forward to using with the upcoming password grant for mobile access tokens.

I'm not convinced that nil is the best thing to pass here, but using a symbol like :never would require some special-case code in the configuration block for this option.