aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2012-11-10 21:41:31 +0000
committerJon Leighton <j@jonathanleighton.com>2012-11-10 21:41:31 +0000
commit12d6d3a6f8914d272529d79cba461759e2dedf09 (patch)
tree881f1c08c8bfc22f94e2d18cef79311d97b0a232 /railties/test
parent8ec51669d46b47027c848001d228d98ee0611f8b (diff)
downloadrails-12d6d3a6f8914d272529d79cba461759e2dedf09.tar.gz
rails-12d6d3a6f8914d272529d79cba461759e2dedf09.tar.bz2
rails-12d6d3a6f8914d272529d79cba461759e2dedf09.zip
Make ActiveRecord::Delegation#method_missing threadsafe
Two threads may be in method_missing at the same time. If so, they might both try to define the same delegator method. Such a situation probably wouldn't result in a particularly spectacular bug as one method would probably just be overridden by an identical method, but it could cause warnings to pop up. (It could be worse if method definition is non-atomic in a particular implementation.) (We will also need this mutex shortly anyway, see #8127.)
Diffstat (limited to 'railties/test')
0 files changed, 0 insertions, 0 deletions