Kurt Stephens
Not a member
Kurt Stephens's latest activity
Thursday, February 17 2011
Tuesday, February 15 2011
-
Kurt Stephens commented at 9:47 PMA naive search yields other potential errors/problems:
actionpack-3.0.3/lib/action_dispatch/http/request.rb:170: TRUSTED_PROXIES = /^127\.0\.0\.1$|^(10|172\... -
Kurt Stephens created the ticket at 9:10 PMactionpack-3.0.3/lib/action_dispatch/http/request.rb:
LOCALHOST = [/^127\.0\.0\.\d{1,3}$/, "::1", /^0:0:0:0:0:0:0:1(%.*)?$/].freezeAll IPv4 127.x.x.x add...
Tuesday, March 09 2010
-
Kurt Stephens commented at 6:39 AMUnless I'm completely mistaken -- The E'' prefix has nothing to do with this bug. The E'' prefix is the extended escape sequence that Postgresql-8.3 (and up) su...
Thursday, May 07 2009
-
Kurt Stephens commented at 8:32 AMTo fix this for your calling sequence would require removal of the "reload" magic. IMO, the reload magic is a really bad API idea, but it would require everyone...
-
Kurt Stephens commented at 8:05 AMThis is why:
def #{symbol}(*args) # def mime_type(*args) #{memoized_ivar} ||= {} ... -
Kurt Stephens commented at 6:34 AMThe elements in args are not protected from side-effects either so something like:
a = [ 1, 2 ] puts memoized_method(a) a[0] = 5 puts memoized_method(a...
-
Kurt Stephens commented at 6:29 AMThere also a problem if method being memoized is named "memoized". :) The "memoized" local variable in the code template should be gensym'ed.
-
Kurt Stephens commented at 6:28 AMAlso, should:
memoized = @_memoized_#{symbol} || ::ActiveSupport::ConcurrentHash.newbe:
memoized = (@_memoized_#{symbol} ||= ::ActiveSupport::ConcurrentHash...
-
Kurt Stephens commented at 6:26 AMHere's fix for activesupport/lib/active_support/memoizable.rb:
module ActiveSupport module SafelyMemoizable def safely_memoize(*symbols) symbols.ea...