mirror of
https://github.com/github/rails.git
synced 2026-01-26 23:08:58 -05:00
Don't rememoize if already frozen
This commit is contained in:
@@ -11,10 +11,9 @@ module ActiveSupport
|
||||
|
||||
def freeze_with_memoizable
|
||||
methods.each do |method|
|
||||
if m = method.to_s.match(/^_unmemoized_(.*)/)
|
||||
send(m[1])
|
||||
end
|
||||
end
|
||||
__send__($1) if method.to_s =~ /^_unmemoized_(.*)/
|
||||
end unless frozen?
|
||||
|
||||
freeze_without_memoizable
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user