Skip to content
Browse files

fix failing spec

  • Loading branch information...
1 parent f467587 commit 420ff6c8adb4da1bead4a5ccd4f3f8e648e3f2e2 @rkh rkh committed Apr 11, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/sinatra/base.rb
View
2 lib/sinatra/base.rb
@@ -346,7 +346,7 @@ def expires(amount, *values)
values << {} unless values.last.kind_of?(Hash)
if amount.is_a? Integer
- time = Time.now + amount
+ time = Time.now + amount.to_i
max_age = amount
else
time = time_for amount

0 comments on commit 420ff6c

Please sign in to comment.
Something went wrong with that request. Please try again.