Skip to content

Commit

Permalink
fix failing spec
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Apr 11, 2011
1 parent 5a91dce commit 8c26399
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra/base.rb
Expand Up @@ -341,7 +341,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
Expand Down

0 comments on commit 8c26399

Please sign in to comment.