Skip to content

Commit

Permalink
Fixes instance of Ruby version = 1.8.7 for Kernel method
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Love committed Apr 28, 2009
1 parent 449c6af commit b8e4538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/aws/s3/extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,10 @@ def __method__(depth = 0)

def __called_from__
caller[1][/`([^']+)'/, 1]
end if RUBY_VERSION > '1.8.7'
end if RUBY_VERSION >= '1.8.7'

def expirable_memoize(reload = false, storage = nil)
current_method = RUBY_VERSION > '1.8.7' ? __called_from__ : __method__(1)
current_method = RUBY_VERSION >= '1.8.7' ? __called_from__ : __method__(1)
storage = "@#{storage || current_method}"
if reload
instance_variable_set(storage, nil)
Expand Down

0 comments on commit b8e4538

Please sign in to comment.