Class: ActiveRecord::Base
Direct Known Subclasses
DbCharmer::ActiveRecord::DbMagic::DatabaseDetectConnection, DbCharmer::Sharding::Method::DbBlockGroupMap::Group, DbCharmer::Sharding::Method::DbBlockGroupMap::Shard, DbCharmer::Sharding::Method::DbBlockMap::ShardInfo, DbCharmer::Sharding::Method::DbBlockSchemaMap::Group, DbCharmer::Sharding::Method::DbBlockSchemaMap::Shard
Class Method Summary collapse
Class Method Details
.inherited_with_hijacking(subclass) ⇒ Object
214 215 216 217 218 |
# File 'lib/db_charmer.rb', line 214 def inherited_with_hijacking(subclass) out = inherited_without_hijacking(subclass) hijack_connection! if DbCharmer.hijack_new_classes? out end |