module Doorkeeper::Models::Expirable

def expired?

Returns:
  • (Boolean) - true if object expired and false in other case
def expired?
  !!(expires_in && Time.now.utc > expires_at)
end