lib/doorkeeper/models/expirable.rb in doorkeeper-1.1.0 vs lib/doorkeeper/models/expirable.rb in doorkeeper-1.2.0
- old
+ new
@@ -11,10 +11,10 @@
def expires_in_seconds
return nil if expires_in.nil?
expires = (created_at + expires_in.seconds) - Time.now
expires_sec = expires.seconds.round(0)
- expires_sec > 0 ? expires_sec : 0
+ expires_sec > 0 ? expires_sec : 0
end
private :expired_time
end
end
end