diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-19 16:42:41 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-01-19 16:42:41 -0800 |
commit | ea6c9de1d31fb19bfdd19ab578ac943f49aa6d50 (patch) | |
tree | f6b9feeecf417f7c98e2e80c02e1b6b1610525e3 /activerecord/lib | |
parent | 760b8d37d4628a26642d4efa571eaf104880a0ea (diff) | |
parent | bc43763247e25058ca1ab50637a649f0b5b186eb (diff) | |
download | rails-ea6c9de1d31fb19bfdd19ab578ac943f49aa6d50.tar.gz rails-ea6c9de1d31fb19bfdd19ab578ac943f49aa6d50.tar.bz2 rails-ea6c9de1d31fb19bfdd19ab578ac943f49aa6d50.zip |
Merge pull request #9002 from dahakawang/master
issue #8934 sovled
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb index 27e6e8898c..3675184193 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb @@ -517,6 +517,7 @@ module ActiveRecord def establish_connection(owner, spec) @class_to_pool.clear + raise RuntimeError, "Anonymous class is not allowed." unless owner.name owner_to_pool[owner.name] = ConnectionAdapters::ConnectionPool.new(spec) end |