Permalink
Browse files

Use custom alternative to __method__ if we're using 1.8.7 or above, n…

…ot just above 1.8.7.
  • Loading branch information...
1 parent e2a13a6 commit 65228fc942b0081f5463ede33c58212af55d5d4e @marcel marcel committed Apr 20, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/aws/s3/extensions.rb
View
@@ -134,7 +134,7 @@ def __called_from__
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)

0 comments on commit 65228fc

Please sign in to comment.