Class: ActiveRecord::Base

Inherits:
Object show all
Defined in:
lib/db_charmer.rb

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